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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Address Parser 2
Expression
^(\d{2,})\s?(\w{0,5})\s([a-zA-Z]{2,30})\s([a-zA-Z]{2,15})\s?(\w{0,5})\s?([a-zA-Z]{0,15})\.?\s?(\d{0,5})$
Description
This is the same Address Parser as the one by NoBug but I extended it to allow you to add apt and apt# at the end. The original can be found in the source link.
Matches
101 W Main St | 101 W Main St. N | 101 W Main St N Apt 5
Non-Matches
Main St | 55a Main St | 123 Street
Author Rating: The rating for this expression. Prechar Xiong
Source http://regexlib.com/REDetails.aspx?regexp_id=2420
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-2025, RegexAdvice.com | ASP.NET Tutorials