Regular Expressions 101

Library entries

Phone regex for => (789) 456-1230

Vote

0

Regular Expression
pcre

/
^(\()?\d{3}(\))?(-|\s)?[2-9]{1}\d{2}(-|\s)\d{4}$
/

Description

Loading markdown...
Submitted by anonymous - a year ago