I already have a working example of a regex that matches most German street names. However, I recently learned, that the following patterns are possible as well:
- A 1
- K 7
- H 2
- P 1
- I 7
- E 7
- T 3
- Z 9
How can I build this pattern into my existing Python-regex?:
^(?:[^\W\d_]+\.?|\([^\W\d_]+\.?\))(?:[- '’](?:[^\W\d_]+\.?|\([^\W\d_]+\.?\)))*$