常规的前pression匹配印度移动电话号码 [英] regular expression to match Indian mobile phone numbers
本文介绍了常规的前pression匹配印度移动电话号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要一个正规的前pression应该接受印度的手机号码。例如...
- 9788812345
- 9876512345
- 7891234567
- 8122212345
解决方案
^(+ 91 | 0091)?[7-9] [0-9] {9} $
块引用>这会为你工作试试。
I need a regular expression that should accept Indian mobile numbers. for example...
- 9788812345
- 9876512345
- 7891234567
- 8122212345
解决方案^(+91|0091)?[7-9][0-9]{9}$
this will work for you try it.
这篇关于常规的前pression匹配印度移动电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文