i need to split a string in java and map it to city ,country and continent
String s = "mumbai| india - Asia";
String b ="{city}|{country}-{Continent}"
where: | and - are special characters
output:
city - mumbai
country - india
continent - Asia
|andindia, or is this a typo?