Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^(0[689]{1})+([0-9]{8})+$
/
g

Description

Start with 0 and the second character is 6|8|9

Thai mobile phone number up to 10

Submitted by anonymous - 8 years ago