Indian Mobile Phone Validators
Regular expression for Indian mobile phone.
Expression1 :
^((\+){0,1}91(\s){0,1}(\-){0,1}(\s){0,1}){0,1}9[0-9](\s){0,1}(\-){0,1}(\s){0,1}[1-9]{1}[0-9]{7}$
Matches: 9836193498 +919836193498 9745622222
Non-Matches +9197456222222 8745622222 9836193481
Expression2:
^([9]{1})([234789]{1})([0-9]{8})$
Matches: 9881060153
Non-Matches +9197456222222 8745622222 45343241342
No comments:
Post a Comment