I am looking for a solution to split a representative Swiss address into a street (and street number) and a zip code (and name of place).
Suggest, I have the following address:
'Bahnhofstrasse 1, 8001 Zürich'
The result I am looking for is:
street: 'Bahnhofstrasse 1'
place: '8001 Zürich'
However, sometimes there is a comma and sometimes not. But the postal code always consists of 4 digits?
I used the .split(') so far but that only works when a comma is present.