Regular Expressions 101

Library entries

Match on phone number in any standard format

Vote

1

Regular Expression
pcre

/
(\+\d{1})?[\s.-]?\(?\d{3}\)?[\s.-]?\d{3}[\s-.]?\d{4}
/
g

Description

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