Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
[6-9][0-9]{9}$
/
gm

Description

Match a single character present in the list below [6-9] 6-9 matches a single character in the range between 6 (index 54) and 9 (index 57) (case sensitive) Match a single character present in the list below [0-9] {9} matches the previous token exactly 9 times 0-9 matches a single character in the range between 0 (index 48) and 9 (index 57) (case sensitive)

Submitted by anonymous - 2 years ago