We help IT Professionals succeed at work.

Regular Expression for Phone No

ExpertHelp79
ExpertHelp79 asked
on
Hi All

I need the regular expression for Phone no in the below format

+91 xxxxxxxxxx
+91 xx xxxxxxxx
0xxxxxxxxxx
0xxx – xxxxxxx
0xxxxxxxxxx
TIA
SOS
0124 4812100

TIA
SOS
Comment
Watch Question

Most Valuable Expert 2011
Top Expert 2015

Commented:
Try:

+91 xx ?xxxxxxxx|0xxx(?: – )?xxxxxxx
Most Valuable Expert 2011
Top Expert 2015
Commented:
Correction

+91 \d\d ?\d{8}|0\d\d\d(?: – )?\d{7}