Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
((^[20]+?\d\d\d\d\d\d\d\d\d\d\d)|(^[0]+?\d\d\d\d\d\d\d\d\d\d))
/
gm

Description

Mobile No Starts from number 20 or 0 digits and end with 12 digits number

Submitted by Venkata Sandeep - 6 years ago