RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(\d{5}-\d{4}|\d{5})$|^([a-zA-Z]\d[a-zA-Z] \d[a-zA-Z]\d)$
Description
This is a modification of the zip code regular expression submitted by Steven Smith ([email protected]) It no longer matches 78754-12aA
Matches
78754 | 78754-1234 | G3H 6A3
Non-Matches
78754-12aA | 7875A | g3h6a3
Author Rating: The rating for this expression. Khoi Pham
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Keto Burn DX UK More Effective For Weight loss
Name: Keto Burn DX UK
Date: 3/4/2022 9:39:55 AM
Comment:
I thoroughly loveKeto Burn DX acknowledge my self despite the size of my body. This previous ability will permit you to make the best in class of the thing you useKeto Burn DX keep on being safeguarded from any harming impacts. Taking an overabundance of time in among dinners makes you hungrier for the subsequent supper. Keto Burn DX UK https://www.jpost.com/promocontent/keto-burn-dx-uk-pros-and-cons-reviews-keto-burn-dx-dawn-french-698785 https://www.jpost.com/promocontent/keto-burn-dx-uk-united-kingdom-is-it-scam-or-trusted-696534 https://lexcliq.com/keto-burn-dx-uk-challenge-for-fat-weight-loss/


Title: Tranquil Leaf CBD Gummies best result for natural oil
Name: Tranquil Leaf CBD Gummies
Date: 11/11/2021 9:54:29 AM
Comment:
Tranquil Leaf CBD Gummies Official Web:-https://ipsnews.net/business/2021/11/10/tranquil-leaf-cbd-gummies-canada-buyer-beware-shocking-side-effects-real-ingredients/ https://www.bignewsnetwork.com/news/271698186/tranquil-leaf-cbd-gummies-canada-shocking-side-effects-buyer-beware-shark-tank-scam-or-legit https://www.mynewsdesk.com/health-news-corp/pressreleases/tranquil-leaf-cbd-gummies-canada-quit-smoking-shark-tank-are-tranquileafz-cbd-gummies-actual-details-3143414 https://www.facebook.com/Tranquil-Leaf-CBD-Gummies-111675821291974/ https://www.facebook.com/Owl-Premium-CBD-Gummies-103845282119630 https://www.facebook.com/Golly-CBD-Gummies-101689398737161 https://golly-cbd-gummies.jimdosite.com/


Title: Zip/Postal Code RegEx
Name: Benny Hill
Date: 5/14/2004 11:54:25 AM
Comment:
This does not work for me in PHP either.


Title: Zip/Postal Code RegEx
Name: W. D.
Date: 1/3/2004 7:38:47 PM
Comment:
Hmmm. Doesn't seem to work for me in PHP: If (eregi("^(\d{5}-\d{4}|\d{5})$|^([a-zA-Z]\d[a-zA-Z] \d[a-zA-Z]\d)$", $ThisZip)) {Return "OK";} // It's OK Else {Return "Bad Format for US or CA Zip/Postal Code";} // It's bad


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