asp.net中的regularexpession验证器 [英] regularexpession validator in asp.net
本文介绍了asp.net中的regularexpession验证器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我asp.net中的regularrexpression验证器的代码,它只允许空格,下划线和字母数字字符..........
Hi please tell me the code for regularexpression validator in asp.net which will allow only space,underscore and alphanumeric character..........
推荐答案
尝试:
Try:
[\s_A-Za-z0-9]+
(加号仅表示一个或多个 )
(The plus just means "one or more")
阅读文档 [ ^ ]?
这篇关于asp.net中的regularexpession验证器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文