Regular expression for identifiying a valid street name + house number

O

Ole

Good day,

perhaps someone is interested in enhancing this regular expression

(^((\w+)(\-)?|(\.)?)+((\w+)((\s)+|((\.)(\s)*)))(\d+))

it is meant to filter a string, corresponding to a valid german street
+ housenumber entry like

Hans-Ebert-Weg Nr. 120
or
Dorfstr. SÜD 12-18


The problem is that the regex does not match any valid street entry.

Please give any suggestions or other possible street names, that would
increase the horizon of the above expression.

Greetings Ole VM.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top