Regular Expressions 101

Library entries

Phone number

Vote

4

Regular Expression
pcre

/
^((((\+[\d\-.]{1,5})?[ \-.]?\d{3})|(\+[\d\-.]{1,5})?[ \-.]?\((\d{3}\)))?[ \-.]?\d{3}[ \-.]?\d{4}\s?(e?x?t?\.?\s?\d{1,7})?)?$
/
i

Description

Loading markdown...
Submitted by Mark Landry - 6 years ago