How can i remove an email from an string using a String class>
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.
精彩评论