Regular Expressions 101

Library entries

us-phone-number

Vote

0

Regular Expression
pcre2

/
(^\s*(?:\+?\d{1,3})?[-. (]*\d{3}[-. )]*\d{3}[-. ]*\d{4}(?: *x(\d+))?\s*)
/
gm

Description

Loading markdown...
Submitted by Me - 2 months ago