Regular Expressions 101

Library entries

PHP North American Phone Number

Vote

1

Regular Expression
pcre2

/
1?\(?([0-9]{3})\)?[-.\s]?([0-9]{3})[-.\s]?([0-9]{4})
/

Description

Loading markdown...
Submitted by Mendel Groner - 2 months ago