Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-11-08 17:07
Updated·2023-07-23 19:29
Flavor·ECMAScript (JavaScript)

/
(?:(?:\\+|0{0,2})91(\\s*[\\- ]\\s*)?|[0 ]?)?[789]\\d{9}|(\\d[ -]?){10}\\d
/
g
Open regex in editor

Description

Matches formats such as the following: 555-555-5555 (555)555-5555 (555) 555-5555 555 555 5555 5555555555 1 555 555 5555

Submitted by anonymous