I have a String
like:
String s = "IPhone 5s $400"
Which I want to get as:
String s1 = "IPhone 5s";
String s2 = "$400";
What I tried was getting the last word of the String
and checking if it starts with "&#"
and if yes, take it out of the String
and make it UTF-8.
But it might be possible that the Price may not be at the end of the String
.
Also, does all the currency symbols start with "$#"
?