Extract german zipcode from line in Java

Posted by tzippy on Stack Overflow See other posts from Stack Overflow or by tzippy
Published on 2010-05-31T09:48:10Z Indexed on 2010/05/31 9:52 UTC
Read the original article Hit count: 302

Filed under:
|
|

hello! I need to extract the zipcode from file's line. each line contains an adress and is formatted in a different way. eg. "Großen Haag 5c, DE-47559 Kranenburg" or "Lange Ruthe 7b, 55294 Bodenheim"

the zipcode is always a five digit number and sometimes follows "DE-". I use Java. Thanks a lot!

© Stack Overflow or respective owner

Related posts about java

Related posts about regex