asp.net中电话号码的字段验证器正则表达式 [英] Field validator regular expression for phone number in asp.net
本文介绍了asp.net中电话号码的字段验证器正则表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我希望定期举行与世界上任何国家代码的电话号码一起使用?
需要帮助
i want a regular expreesion which works with an any phone number of the world with country code??
help required
推荐答案
试试这个正则表达式:
Try this Regular Expression:
\d{2}-\d{10}
<!-- \d{2} will contain the country code and \d{10} will contain the phone number. You can increase the size of digits as per your need.. Eg: 91-9551234567 --!>
--Amit
--Amit
这篇关于asp.net中电话号码的字段验证器正则表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文