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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find ZIP+4 - XXXXX-XXXX
Expression
^\d{5}-\d{4}$
Description
Numeric and hyphen 5+4 ZIP code match for ZIP+4.
Matches
22222-3333 | 34545-2367 | 56334-2343
Non-Matches
123456789 | A3B 4C5 | 55335
Author Rating: The rating for this expression. Steven Smith
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: Works well
Name: c-pal
Date: 2/20/2008 5:10:29 PM
Comment:
Does what it's supposed to. Thanks.


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