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 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
   Displaying page 1 of 1 pages; Items 1 to 1

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