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.
如何在字符串中允许 az 0-9、“空格”和“加号”并删除所有其他字符?
我的字符串是:
RIOT☩ DANNY/DA'ZE-U+S ☩ 星期六 ☩ 5 月 18 日 ☩ 西蒙斯
有谁能够帮助我?
我不确定我是否正确理解了你的问题......
是否要删除所有不允许的字符?
然后将“[^az 0-9+]”替换为“”