Title |
Test
Find
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
|
Source |
|
Your Rating |
|
Title: Thanks
Name: Rodney
Date: 4/22/2009 1:44:06 PM
Comment:
Works with Jquery
Title: .NET friendly
Name: p.net
Date: 3/24/2005 11:39:08 PM
Comment:
First one that has worked with .NET RegexValidator thanks!