Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我们想从字符串中删除电子邮件地址时,使用哪个字符串类。
需要帮助,我是 Java 新手。
谢谢
你可以使用String类。它有一些有用的方法,例如replaceAll和 replaceFirst。
String
您需要一个好的正则表达式来捕获字符串的电子邮件地址部分。这可能会有所帮助。