Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-02-21 22:59
Flavor·PCRE (Legacy)

/
^\d{3}-\d{3}-\d{4}$
/
gm
Open regex in editor

Description

Such as 333-333-1234.

Does not test for valid sequences of digits. E.g. 000-000-0000 would pass.

Submitted by anonymous