Regular Expressions 101

Library entries

International Phones Validation

Vote

0

Regular Expression
javascript

/
^(\d{10,21})|(\+\d{1,3}|\d{1,4}|\(\+\d{1,3}\)|\(\d{1,2}\))(([ -.]\d+){1,5}$|([ -.]\d+){1,5}([ -.](ext\.|x|extention))[ -.]\d{1,5}$)
/
gm

Description

Loading markdown...
Submitted by Alexei Yagolnikov - 5 years ago