Regular Expressions 101

Community Patterns

Public Phone

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 - 2 years ago