Regular Expressions 101

Community Patterns

Thai Home Telephone Validation

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 - 7 months ago