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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^[0-9]{5}([- /]?[0-9]{4})?$
Description
US Zip Code + 4 digit extension Postal Code
Matches
14467 | 144679554 | 14467-9554
Non-Matches
14467 955 | 14467- | 1446-9554
Author Rating: The rating for this expression. Chris Weidert
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: [0-9] can be replace with \d
Name: d
Date: 12/31/2008 1:22:15 PM
Comment:
Title said it all. It might not work on old regex that doesn't handle \d. Everything looks and works good.


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