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

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 52 regular expressions found.

Change page:   |    Displaying page 3 of 3 pages; Items 41 to 52
Title Test Details Canada Postal Code
Expression
^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$
Description
It matches canada postal code
Matches
R2R2S9 | T2B 3N7
Non-Matches
T2 B3N7 | 33187
Author Rating: Not yet rated. John Alpha
Title Test Details Canada Postal Codes
Expression
^(?<full>(?<part1>[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1})(?:[ ](?=\d))?(?<part2>\d{1}[A-Z]{1}\d{1}))$
Description
This is a combination of Jerry Schmersahl's (http://regexlib.com/REDetails.aspx?regexp_id=930) US ZIP Code regex and John Alpha's (http://regexlib.com/REDetails.aspx?regexp_id=2754) Canadian Postal Code regex. It takes a Canadian postal code with or without a space and matches the first three digits to the named reference 'part1', the second three digits to the named reference 'part2', and the entire code (if a match) to the named reference 'full'
Matches
M4S 1G9 | M4S1G9 | K1A0B1 | K1A 0B1
Non-Matches
123 ABC | 5A2A2B | K1A 0B | M4S | 90210
Author Rating: The rating for this expression. Christopher Congdon
Title Test Details Canadian Postal Code
Expression
^(?![DFIOQU])([ABCEGHJ-NPRSTVXY]\d[A-Z][ ]\d[A-Z]\d)$
Description
Validates Canadian postal codes. Format: A9A 9A9 Cannot contain: DFIOQU First letter must be one of: ABCEGHJKLMNPRSTVXY
Matches
A9A 9A9 | T3P 6N1
Non-Matches
D9U 1O5
Author Rating: Not yet rated. Brad Williams
Title Test Details Dutch Postal code
Expression
^[0-9]{4} {0,1}[A-Z]{2}$
Description
Check the Dutch postal code offical format of "9999 AA". Since it is often stored in a database without the space, this pattern allows 0 or 1 space.
Matches
9999 AA | 9999AA
Non-Matches
9999 aa | 9999?AA
Author Rating: Not yet rated. Willem Mulder
Title Test Details Canadian Postal Code
Expression
^[ABCEGHJKLMNPRSTVXY][0-9][A-Z]\s?[0-9][A-Z][0-9]$
Description
Complies with the Canadian Postal Code requirements as described at http://www.infinitegravity.ca/postalcodeformat.htm Allows for optional center space.
Matches
J0E 1S0, X0E 1W0, N0G1L0
Non-Matches
I0W 2X9, 123456
Author Rating: Not yet rated. Doug Vanderweide
Title Test Details US & CAN Postal Codes
Expression
^((\d{5})|(\d{5}-\d{4})|([A-CEGHJ-NPR-TV-Z]\d[A-CEGHJ-NPR-TV-Z]\s\d[A-CEGHJ-NPR-TV-Z]\d))$
Description
Matches U.S. and Canadian postal codes that follow the proper numbering schemes.
Matches
01234,01234-1234,1A1-A1A
Non-Matches
123456,12345-12345,1D1-D1D
Author Rating: Not yet rated. Nathon Dalton
Title Test Details Deutsche Postleitzahl (german postal code)
Expression
^((0(1\d\d[1-9])|([2-9]\d\d\d))|(?(?=^(^9{5}))|[1-9]\d{4}))$
Description
Erklärt deutsche Postleitzahlen für gültig, die zwischen dem aktuell kleinsten und größten Wert liegen: von '01001' bis '99998'. Declares german postal codes as valid, if they lie between the currently smallest and largest value: from '01001' to '99998'.
Matches
01001 | 63628 | 90000
Non-Matches
1001 | 01000 | 99999 | 856545
Author Rating: Not yet rated. Daniel
Title Test Details Canadian Postal Code
Expression
^[a-zA-Z]{1}[0-9]{1}[a-zA-Z]{1}[- ]{0,1}[0-9]{1}[a-zA-Z]{1}[0-9]{1}
Description
Matches Canadian style postal codes
Matches
v0h-1t0 | V0H1T0 | V0h 1t0
Non-Matches
V0H--1T0 | V0H11T0 | V0H.1T0
Author Rating: Not yet rated. Kyle
Title Test Details Código Postal Portugues (Portuguese Postal Code)
Expression
[0-9]{4}-[0-9]{3}
Description
Regex for postal code in Portugal
Matches
4785-252
Non-Matches
12345
Author Rating: Not yet rated. Nelson Carvalho
Title Test Details Dutch zip/postal code
Expression
[1-9][0-9]{3}(?!SS|SA|SD)[A-Z]{2}
Description
Regex for Dutch zip/postal codes. A Dutch zip code exists of 4 numbers and 2 letters. The first number must be a 0 or higher. Letter combinations of "SS", "SD" and "SA" are excluded for historical reasons.
Matches
1234AA | 9474RK | 6446ka
Non-Matches
1234SS | 9758 KS | 0146KF | 846KS | 9465A
Author Rating: Not yet rated. Siebe Joris Jochems
Title Test Details U.S. and Canadian postal codes
Expression
^((\d{5}-?\d{4})|(\d{5})|([A-Za-z]\d[A-Za-z]\s?\d[A-Za-z]\d))$
Description
This expression more loosely matches three different formats of postal codes: 5 digit US ZIP code, 5 digit US ZIP code + 4, and 6 digit alphanumeric Canadian Postal Code. The first one must be 5 numeric digits. The ZIP+4 must be 5 numeric digits, a hyphen (optional), and then 4 numeric digits. The Canadian postal code must be of the form ANANAN where A is any alphabetic character (case insensitive) and N is a numeric digit from 0 to 9. A space between the 2nd "A" and 2nd "N" is optional but not required, so the form could also be interpreted as "ANA NAN"
Matches
90210, 90210-1234, 902101234, H0H0H0, h0h0h0, H0H 0H0, h0h 0h0
Non-Matches
9021090210, California, ABC123, ABC 123, H0H H0H
Author Rating: Not yet rated. Douglas Barbin
Title Test Details Autralian zip code validator
Expression
^((02[0-9]{2})|(0[8-9][0-9]{2})|(1[0-9]{3})|(2[0-7][0-9]{2})|(28[0-8][0-9])|(289[0-8])|(29[0-9]{2})|([3-5][0-9]{3})|(6[0-6][0-9]{2})|(67[0-8][0-9])|(679[0-7])|(6[8-9][0-9]{2})|([7-9][0-9]{3}))$
Description
Autralian zip postal code validator
Matches
[0200-0299]|[0800-0999]|[1000-2898]|[2900-6797]|[6800-9999]
Non-Matches
[0000-0199]|[0300-0799]|[2899,6798,6799]
Author Rating: Not yet rated. Herberto Graca
Change page:   |    Displaying page 3 of 3 pages; Items 41 to 52

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