我需要一个reguuler表达式,dosnt允许〜和:符号 [英] I need a reguuler expression that dosnt allows ~ and : symbols
本文介绍了我需要一个reguuler表达式,dosnt允许〜和:符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i need a regular expression that dosn't allows ~ and : symbols
我尝试了什么:
i尝试了这个^((?!〜)。)* $
但它只检查〜符号。
i想要阻止两个符号〜和:
需要快速帮助。
提前致谢。
What I have tried:
i tried this "^((?!~).)*$"
but it only checks for ~ symbol.
i wants to prevent both symbols ~ and :
quick help is needed.
Thanks in advance.
推荐答案
但它只检查〜符号。
i想要阻止两个符号〜和:
需要快速帮助。
提前致谢。
"
but it only checks for ~ symbol.
i wants to prevent both symbols ~ and :
quick help is needed.
Thanks in advance.
试试:
Try:
^[^:~]*
这篇关于我需要一个reguuler表达式,dosnt允许〜和:符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文