Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-07-31 21:47
Flavor·PCRE2 (PHP)

/
(1\s?)?(\(\d{3}\)\s?|\d{3}[\-|\s]?)(\d{3}[\-|\s]?)(\d{4})
/
g
Open regex in editor

Description

It's easy to think about it section by section.

Submitted by Alex