Regular Expressions 101

Community Patterns

Sri Lankan Mobile Number Validation

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[0]{1}[7]{1}[01245678]{1}[0-9]{7}$
/
gm

Description

Submitted by Isuru Ranawaka - 2 years ago