How to convert this string:
String str = "***123.45***";
to this double:
double d = 123.45; 
When I use valueOf
double d = Double.valueOf("***123.04***");
or parseDouble
double d = Double.parseDouble("***123.45***");
it will throw java.lang.NumberFormatException: For input string: ""123.04"" because the string doesn't contain number only. I need to get rid of the asterisks.
*, or can it also be another character (like letters)?