Displaying page
of
pages;
Items to
Title |
Test
Details
US ZipCode
|
Expression |
(^(?!0{5})(\d{5})(?!-?0{4})(|-\d{4})?$)
|
Description |
This expression matches two different formats of zip codes: 5 digit US ZIP code and 5 digit US ZIP code + 4.The first one must be 5 numeric digits. The ZIP+4 must be 5 numeric digits, a hyphen, and then 4 numeric digits.
|
Matches |
12345 | 12345-1234
|
Non-Matches |
00000 | 123451234 | 12345-0000 | 00000-0000 | 00000-1234 | 000001234
|
Author |
Rating:
megha patel
|
Displaying page
of
pages;
Items to