Regex Hero | The Online .NET Regular Expression Tester
/
.NET Regex Library
Zip Code (Postal Code Optional)
1
Open in the
Regex Tester
^\d{5}(?:\-\d{4})?$
Matches a 5-digit zip code with or without the optional 4-digit postal code.
Steve Wortham
4/15/2010 6:08:33 PM
0 comments so far.
Log in
to leave a comment.
Preview
<< back to
Library
You cannot vote on your own.
(click to dismiss)
You may only vote once.
(click to dismiss)
You must log in to vote.
(click to dismiss)
Regex Hero
Log In
.NET Regex Tester
Reference
Library
Videos
Support