Example address: "New York Avenue 12 3544 NYC"
This address is represented as a string.
The output I am trying to achieve is the following:
Address Name: New York Avenue
Address Number: 12
Zip Code: 3544
I was thinking of splitting the string based on the spaces present, but since some street names have multiple spaces in their name, this wasn’t possible.
A possible solution I am thinking of is finding the position of the first occurring number in the string, being the street number, and splitting the string from there, seperating the street name from the street number.
However, I have no clue on how to do this. I am having troubles seperating letter from the number values in order to achieve that goal.
Thanks in advance