Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(\+91|\+91\-|0)?[789]\d{9}$
/

Description

All indian mobile phone numbers are till now are in the format of +91-(789)(9-digits) or +91(789)(9-digits) or 0(789)(9-digits). those numbers which are come into this category is valid with this RegEx.

Submitted by N shoban babu - 9 years ago