rss@gmail.com& amp; b = 52我想从这个邮件ID中删除& amp; b = 52哪个字符串函数用于此 [英] rss@gmail.com&b=52 I want to remove &b=52 from this mail id which String function is used for this
本文介绍了rss@gmail.com& amp; b = 52我想从这个邮件ID中删除& amp; b = 52哪个字符串函数用于此的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请从以下字符串中删除& amp; b = 52
的代码:
Please give me the code for removing the &b=52
from strings such as these:
- rsc@gmail.com& b = 52
- ab@gmail.com& b = 52
- aaaa @ gmail.com& b = 52
推荐答案
这个怎么样?
String s1 = "rss@gmail.com&b=52";
String s2 = s1.substring(0, 13);
警告:可能无法在所有情况下都有效。我可以改进它如果您提供有关您的问题的更多信息。
Warning: Might not work in all situations. I can possibly improve it if you give more information about your problem.
这篇关于rss@gmail.com& amp; b = 52我想从这个邮件ID中删除& amp; b = 52哪个字符串函数用于此的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文