Hi guys
I have a application where I extract a address from folder names.
The address is not always how it should be acording to our rules for creating case folders.
So I am trying to split it and delete the parts that should not be there.
This is the folderPath "X:\IN4MO\TILBUDSSAGER FORSIKRINGSAFDELINGEN\Frederik d. II's Allé 335, 8660 Skanderborg"
Then I extract The address "Frederik d. II's Allé 335, 8660 Skanderborg"
Then I Replace the comma with Space "Frederik d. II's Allé 335 8660 Skanderborg"
Then I Replace double space with single space "Frederik d. II's Allé 335 8660 Skanderborg"
Here is where I am stuck.
I want to split the string Before the Zip code that is always 4 digit.
I have made a sample file with the code working up to where to split at Zip code, I have no idear how to do that.
I hope some one can guide me to a solution.
Bookmarks