Regular Expressions 101

Community Patterns

Australian phone number

0

Regular Expression
PCRE (PHP <7.3)

/
(^\({0,1}((0|\+61)(2|4|3|7|8)){0,1}\){0,1}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{1}(\ |-){0,1}[0-9]{3}$)
/
g

Description

no description available

Submitted by anonymous - 7 years ago