正则表达式验证器中的验证表达式格式 [英] validation expression format in regular expression validator
本文介绍了正则表达式验证器中的验证表达式格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
plz给出 xxx(3到5个字符的单词)/ x(1到5个整数的数字)/ xx(2个整数的数字)的格式的验证表达式 - xx(带2个整数的数字)
推荐答案
我尝试了你的解决方案,我唯一能看到的就是你不支持你在你的例子中展示的空间 - 你的意思是
I tried your solution, and the only thing I can see with it is that you don''t support the spaces you show in your example - did you mean
(\w{3,5}\/\d{1,5}\/\d{2}\s\-\s\d{2})
您的原始比赛
Your original matches
ABC/234/22-44
但是添加了\,它匹配
but with the "\s" added it matches
ABC/234/22 - 44
获取 Expresso 的副本[ ^ ] - 它是免费的,它会检查,测试和生成正则表达式。
Get a copy of Expresso [^] - it''s free, and it examines, tests and generates Regular expressions.
这篇关于正则表达式验证器中的验证表达式格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文