Title |
Test
Find
Pattern Title
|
Expression |
^\({0,1}0(2|3|7|8)\){0,1}(\ |-){0,1}[0-9]{4}(\ |-){0,1}[0-9]{4}$ |
Description |
Expression to parse Australian landline telephone numbers. Will only accept valid STD codes. Allows for brackets around the STD code and either spaces or dashes between number groups. |
Matches |
(02) 9323 1234 | 0293231234 | 02-9323-1234 |
Non-Matches |
01 9323 1234 | 02 932 123 | 02/9323/1234 |
Author |
Rating:
Not yet rated.
Ben Vaughan
|
Source |
|
Your Rating |
|
Title: Incorrect and inefficient syntax.
Name: g1smd
Date: 8/5/2012 4:10:07 AM
Comment:
The \({0,1} simplifies to \)? here.
The (2|3|7|8) simplifies to [2378] here.
The \){0,1} simplifies to \)? here.
The (\ |-){0,1} simplifies to [\s-]? here.