RegExLib.com - The first Regular Expression Library on the Web!
Home
Search
Regex Tester
Browse Expressions
Add Regex
Login
Please support RegExLib Sponsors
Subscribe
Recent Expressions
Site Links
Regex Cheat Sheet
Search
Regex Tester
Browse Expressions
Add Regex
Manage My Expressions
Contributors
Regex Resources
Web Services
Advertise
Contact Us
Register
Recent Expressions
Recent Comments
Community
Regex Forums
Regex Blogs
Regex Mailing List
Top Contributors
Michael Ash (55)
Steven Smith (42)
Matthew Harris (35)
tedcambron (29)
PJWhitfield (28)
Vassilis Petroulias (26)
Matt Brooke (22)
Juraj Hajdúch (SK) (21)
Mukundh (21)
RobertKaw (19)
All Contributors
Advertise with us
Sponsors
Expressions by User
Title
Test
Details
Pattern Title
Expression
^[1-9]{1}[0-9]{3}$
Description
This expression matches most swiss postal codes
Matches
1234
|
9876
Non-Matches
0123
|
012
|
12345
Author
Rating:
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[1-9]{1}[0-9]{3}$
Description
This expression should match with most Portugese Post codes
Matches
1234
|
9999
|
1111
Non-Matches
0000
|
0123
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^([0][1-9]|[1-4[0-9]){2}[0-9]{3}$
Description
Matches spanish postcodes
Matches
01234
|
50000
|
12345
Non-Matches
00
|
99
Author
Rating:
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-9]{5}$
Description
A simple expression for algerian postcodes
Matches
12345
|
99999
|
00000
Non-Matches
1
|
1234
|
999999
Author
Rating:
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^([A-Z]{2}[0-9]{3})|([A-Z]{2}[\ ][0-9]{3})$
Description
Expression for matching andorran postcodes
Matches
ab 123
|
ab123
Non-Matches
12 abc
|
12345
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[A][Z](.?)[0-9]{4}$
Description
Expression to test for valid postcodes for azerbaijan
Matches
AZ 1234
|
AZ1234
Non-Matches
12 abcd
|
AB 1234
Author
Rating:
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^([1][0-9]|[0-9])[1-9]{2}$
Description
Simple postcode validation for postcodes for bahrain
Matches
123
|
1299
|
199
Non-Matches
1300
|
000
|
9999
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[1-9][0-9]{3}$
Description
Simple expression to validate bangladeshi postcodes
Matches
1000
|
9999
|
1234
Non-Matches
123456
|
0123
|
99
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-9]{6}$
Description
Simple validation expression for postcodes for Belarus
Matches
123456
|
000000
|
999999
Non-Matches
0
|
9
|
1234
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^([A-Z]{2}[\s]|[A-Z]{2})[\w]{2}$
Description
An expression to validate postcodes for bermuda
Matches
AA AA
|
AA 00
|
AAAA
Non-Matches
1234
|
ABC
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[B|K|T|P][A-Z][0-9]{4}$
Description
This is a simple expression to validate postcodes from Brunei
Matches
BT2328
|
KA1234
Non-Matches
AB1234
|
AB 1234
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-9]{3}[-][0-9]{4}$
Description
Simple Postcode validation expression for Chile
Matches
872-0019
|
000-0000
|
999-9999
Non-Matches
000 0000
|
000000
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[H][R][\-][0-9]{5}$
Description
Simple expression for internationally formatted croatian postcodes.
Matches
HR-00000
|
HR-99999
Non-Matches
HR 00000
|
00000
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-9]{4}$
Description
Simple validation expression for cyprus postcodes
Matches
1000
|
9999
|
0000
Non-Matches
1
|
99999
|
99 000
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-9]{5}$
Description
Simple expression for validation of egyptian postcodes
Matches
00000
|
99999
Non-Matches
0 0 0 00
|
00
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-9]{5}$
Description
Simple expression to match estonian postcodes
Matches
00000
|
99999
Non-Matches
00 000
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[1-9][0-9]{3}$
Description
Simple expression to validate ethiopian post codes
Matches
1000
|
9999
Non-Matches
1 999
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[F][O][\s]?[0-9]{3}$
Description
Simple expression to validate postcodes for the faroe islands
Matches
FO100
|
FO000
|
FO 000
Non-Matches
AB 123
|
AB123
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-9]{5}$
Description
Simple expression for matching postcodes for French Polynesia
Matches
00000
|
99999
Non-Matches
00 000
|
99 9 9 9
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[9][7|8][1|0][0-9]{2}$
Description
Simple validation expression for postcodes in guadeloupe
Matches
97100
|
98099
Non-Matches
12345
|
97 100
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[0-4][0-9]{2}[\s][B][P][\s][0-9]{3}$
Description
This is a simple expression for testing postcodes in Guinea
Matches
001 BP 123
|
499 BP 999
Non-Matches
001BP999
|
999 BP 000
Author
Rating:
Not yet rated.
Matt Brooke
Title
Test
Details
Pattern Title
Expression
^[1-9][0-9]{3}$
Description
Simple expression for validating postcodes for guinea-bissau
Matches
1000
|
1999
|
9999
Non-Matches
0000
|
0123
Author
Rating:
Not yet rated.
Matt Brooke
Copyright © 2001-2026,
RegexAdvice.com
|
ASP.NET Tutorials