Regular Expressions 101

Library entries

Mobile Number Regex

Vote

2

Regular Expression
pcre2

/
^((?:[1-9][0-9 ().-]{5,28}[0-9])|(?:(00|0)( ){0,1}[1-9][0-9 ().-]{3,26}[0-9])|(?:(\+)( ){0,1}[1-9][0-9 ().-]{4,27}[0-9]))$
/
gm

Description

Loading markdown...
Submitted by anonymous - 3 months ago