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 Pattern Title
Expression
(^(?!0{5})(\d{5})(?!-?0{4})(-?\d{4})?$)
Description
Javascript matches US zipcodes not allowing all zeros in first 5 or +4
Matches
12345 | 12345-6789 | 123456789
Non-Matches
12345-0000 | 00000-0000 | 00000
Author Rating: Not yet rated. Justin Elsberry
   Displaying page 1 of 1 pages; Items 1 to 1

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