| Title |
Test
Find
USA ZIP postcode
|
| Expression |
(\d{5}-\d{4}|\d{5}) |
| Description |
Matches:
five digits hypen four digits
or just five digits
anywhere within string.
C#
string reg_usa_postcode = @"(\d{5}-\d{4}|\d{5})"; |
| Matches |
Ohio 43050-2495 USA, Houston 77053 USA Texax |
| Non-Matches |
USA 4512, Texas 1234-1234 US |
| Author |
Rating:
Not yet rated.
Szymon
|
| Source |
|
| Your Rating |
|