简体   繁体   中英

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 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM