想要正则表达式允许使用字母数字,空格和hypen [英] want regular expression for allow alphanumeric,space and hypen
本文介绍了想要正则表达式允许使用字母数字,空格和hypen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
heyy ..
我想要一个正则表达式,只允许在文本框中使用字母数字,空格和爆炸
任何正则表达式??
heyy..
I want a regular expression for allow only alphanumeric,space and hypen in a textbox
Any regular expressions??
推荐答案
您应该能够在此站点中找到它。 http://regexlib.com/ [ ^ ]
You should be able to find it in this site. http://regexlib.com/[^]
试试这个
Try this
^[A-Za-z0-9- ]+
问候......:笑:
Regards.. :laugh:
这篇关于想要正则表达式允许使用字母数字,空格和hypen的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文