Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\(?\d{3}[-.)]\d{3}[-.]\d{4}
/
gm

Description

Regex to group phone numbers.

Submitted by anonymous - 5 years ago