Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
\+\d{1,2}-\d{3}-\d{3}-\d{4}
/
gm

Description

It works like it looks, a plus followed by 1 or 2 digits, followed by a standard 10 digit phone number

Submitted by Brady Kelly - 3 years ago