Textbox的正则表达式验证 [英] Regular Expression Validation for Textbox
本文介绍了Textbox的正则表达式验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文本框,它只能接受带小数点后的数字和小数点后的2个字符。
i have the text box which should only accepts numbers with single decimal point and 2 char after decimal point.
推荐答案
试试这个链接
http://stackoverflow.com/ questions / 308122 / simple-regular-expression-for-a-decimal-with-a-precision-of-2 [ ^ ]
希望这有助于
try this link
http://stackoverflow.com/questions/308122/simple-regular-expression-for-a-decimal-with-a-precision-of-2[^]
Hope this helps
这篇关于Textbox的正则表达式验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文