Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(\d{1,3}[-\s]?|)\d{3}[-\s]?\d{3}[-\s]?\d{4}$
/

Description

It accepts the mobile no with space upto 13 digits with country code but without + symbol. following are examples 1.9959966566 2.919959966566 3.91 995 996 6566 4.995 996 6566 5.91 9959966566

Submitted by Pravallika Chowdary - 9 years ago