I crawl a site and i get some prices from it. I get a price with its currency (21,00 TL) i should remove currency(TL) and the left whitespace on it for convert double to string. In short i should get 21.00 . Whatevery i did , i couldnt remove that whitespace.
I got from crawler :
<b>21,00 TL</b>
What i try:
price_lower_str = price_lower_str.replace(" TL","");
and
price_lower_str = price_lower_str.replace(" TL","");
price_lower_str = price_lower_str.replace("TL","");
price_lower_str = price_lower_trim();
but i couldnt get only 21.00 . Who can help me?
Thanks