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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details US zip codes with or without dashes
Expression
(^\d{5}$)|(^\d{9}$)|(^\d{5}-\d{4}$)
Description
Regex to allow only 9 digit zip code with or without dashes
Matches
32225-1234, 32225, 322251234
Non-Matches
asdfg
Author Rating: Not yet rated. Rennish Joseph
   Displaying page 1 of 1 pages; Items 1 to 1

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