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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Australian Residential Address
Expression
^((unit|u|)\s*)?(?<unit>\d*\w?)?(\s+|/)?(?<streetNo>\d+(\-\d+)?)\s+(?<streetName>\w+)\s+(?<streetType>\w+)\s+(?<suburb>\w+(\s+\w+)?)\s+(?<state>\w+)\s+(?<postcode>\d{4})$
Description
It is not very strong and I am still working on that. Would like to put it up so that people can help to complete it. The problem is with addresses that do not have unit number, it picks the first digit of the street number as the unit number.
Matches
unit 10/11-15 Miller St North Sydney NSW 2068
Non-Matches
11-15 Somewhere Ave Suburb NSW 2068
Author Rating: Not yet rated. Reza
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

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