Which string class is to use when we want to remove an email address from a string.
need help 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.