Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
Created·2015-04-15 20:13
Flavor·PCRE (Legacy)

/
^[0-9]{3}[\ ]{0,1}[0-9]{3}[\ ]{0,1}[0-9]{4}$
/
Open regex in editor

Description

Accepts spaces or not 1234567890 123 456 7890

Submitted by Christopher Dufort