Regular Expressions 101

Library entries

us phone number validation

Vote

0

Regular Expression
pcre2

/
^(\+\d{1,2}\s)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$
/

Description

Loading markdown...
Submitted by anonymous - 5 days ago