Regular Expressions 101

Library entries

Phone numbers

Vote

0

Regular Expression
pcre

/
(\(?\b(\d\d\d)\)?[. ]((\d\d\d)[ .-](\d{4})))\b
/
g

Description

Loading markdown...
Submitted by anonymous - 4 years ago