Community Patterns

Community Library Entry

0

Regular Expression
Created·2023-01-25 23:39
Flavor·ECMAScript (JavaScript)

/
(?:\(\d{3}\)*\s\d{3}-\d{4})|(?:\d{3}(?:-|\s*)\d{3}-\d{4})|(?:\d{10})
/
gm
Open regex in editor

Description

Matches any standard, 10-digit US phone number formats

Submitted by Atkin