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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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