Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?:\+(?<code>\d))?(?<number>\d+)$
/
gm

Description

Phone number

Submitted by nipo - 3 years ago