Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(7|8)(\ |-)?\(?9\d{2}\)?(\ |-)\d{2,3}(\ |-)?\d{2,3}(\ |-)?\d{2,3}
/
gm

Description

Public phone regex

Submitted by AlexVerkhov - 3 years ago