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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Felxible US address match
Expression
^\d+?[A-Za-z]*\s\w*\s?\w+?\s\w{2}\w*\s*\w*$
Description
Flexible match for valid US street addresses requiring at least some street number with or without a unit letter followed by a space, then either a modifier like N, W, West, etc, or no modifier, then another space, followed by the street name, then a space folowed by the street type abreviated or spelled out (ave or avenue). Can accept Apt number at the end. Does not match addresses with no number, improperly formatted numbers, or no street type.
Matches
3 Olive Lane | 1234 SE Franklin St | 34 East Avenue Apt 54 | 23b Orange Lane Apt 12 | 55 Martingale St Apt A
Non-Matches
West Avenue | 22b2 East St | 22 Olive | Apt 5
Author Rating: Not yet rated. Logan Bertram
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-2025, RegexAdvice.com | ASP.NET Tutorials