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: 4 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 4
Title Test Details Pattern Title
Expression
\b((?:0[1-46-9]\d{3})|(?:[1-357-9]\d{4})|(?:[4][0-24-9]\d{3})|(?:[6][013-9]\d{3}))\b
Description
This is my attempt to find out valid german postal codes (PLZ or Postleitzahlen). After the German Unification the numbers were changed to a five digit system. The postal codes starts with the two digit "Leitzahl". This is a number between 00 and 99 excluding the not yet used numbers: 00, 05, 43 and 62! After that follows directly a three digit number, 000-999. Comments welcome. This works for me, however I think it could be written more compact, but could not figure out how ;-) For more information on german postal codes see: http://de.wikipedia.org/wiki/Liste_der_Postleitbereiche_Deutschland http://de.wikipedia.org/wiki/Postleitzahl_%28Deutschland%29 http://en.wikipedia.org/wiki/List_of_postal_codes_in_Germany
Matches
12556 | 01550 | 80796
Non-Matches
05234 | 8973 | 62980
Author Rating: The rating for this expression. Markus Matern
Title Test Details German postal code verification (UPDATED)
Expression
((0[13-7]|1[1235789]|[257][0-9]|3[0-35-9]|4[0124-9]|6[013-79]|8[0124-9]|9[0-5789])[0-9]{3}|10([2-9][0-9]{2}|1([2-9][0-9]|11[5-9]))|14([01][0-9]{2}|715))
Description
Accurate German postal code verification. Germany has 5-digit numeric postal codes. The expression evaluates a postal code within state based specific ranges.
Matches
01125
Non-Matches
34125
Author Rating: The rating for this expression. Vassilis Petroulias
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 German Postal Code
Expression
[D]?[-D]?[0-9]{5}
Description
German postal code with or without national praefix.
Matches
D-25335; 25335
Non-Matches
5335
Author Rating: The rating for this expression. etdgoibjuuy
   Displaying page 1 of 1 pages; Items 1 to 4

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