如何使用正则表达式验证印度土地行号 [英] how to validate indian land line numbers using regex
本文介绍了如何使用正则表达式验证印度土地行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用正则表达式验证印度土地行号,允许数字,括号,空格
how to validate indian land line numbers using regex which allows numbers,parentheses,space
推荐答案
您好b $ b
尝试这个正则表达式可能会有所帮助
Hi
Try this regular expression may it will help
mobile no..
^9\d{9}
对于固定电话号码..
/ ^ [0-9] \d { 2 , 4 } - \d { 6 , 8 }
For Landline number.. /^[0-9]\d{2,4}-\d{6,8}
/
这篇关于如何使用正则表达式验证印度土地行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文