RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(((2|8|9)\d{2})|((02|08|09)\d{2})|([1-9]\d{3}))$
Description
Matched Australian Postcodes, as defined by AusPost. Many Australian developers are unaware of the small range of 3 digit, or 0 starting postcodes. 220 and 221 (or 0220 and 0221) are for ANU and LVR. 800s and 900s (or 0800s and 0900s) are for NT, and parts of SA, WA. 1000s are for big companies in Sydney, competition mailings, etc.
Matches
200 | 0820 | 2753
Non-Matches
700 | 0700 | abcd
Author Rating: The rating for this expression. Tatham Oddie
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: No Longer Valid
Name: Nathan Hill
Date: 9/12/2006 9:23:55 PM
Comment:
This regular expression is no longer valid in Australia as Sydney now has 8XXX postcodes.


Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials