Looking for a regex that specifies a German house number:
Valid house number:
- 25
- 25 a
- 25b
- 25-ab
- 12-14
- 1
- 9
- 21
- 1a
- 121 b
- 25A
- 25 a
Not valid house number:
- 1 a1
- 1a1
- 12ab12
- 0
- b
- 0a
- 00a
- a a
- 00 a
- 13àâäèéêë
The last example excludes every non Latin character
My regex doesn't match the way it should:
\d+(\s|-)?\w*$
EDIT: Sorry, I had to change the examples above! Please have a look!
