开发者

How can i remove an email from an string using a String class>

开发者 https://www.devze.com 2023-04-10 03:53 出处:网络
Which string class is to use when we want to remove an email address from a string. need hel开发者_如何学Gop and i am a newbie in java.

Which string class is to use when we want to remove an email address from a string.

need hel开发者_如何学Gop and i am a newbie in java.

thanks


You can use the String class. It has a few methods which are helpful, such as replaceAll, and replaceFirst.

You'll need a good regular expression to capture the email address part of the String. This might be helpful.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号