Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^0(2\d{7}|3[2-9]\d{6}|4[2-5]\d{6}|5[3-6]\d{6}|7[3-7]\d{6})$
/
gm

Description

Submitted by Chadin Chaipornpisuth - a year ago