Good morning,
I am using a small line of code to clean the price information obtained through "scrap". Since I get from different countries, I have different currencies and I want to leave the number clean.
For this I use:
price.select("span").first().text().replace(".", "").replaceAll("SG$|CAD|R$|HUF|€|₽|incl. GST|$|R|₹|£|¥|₩|NT$","")
What is the problem? Well, there are 3 characters that do not take away: $, SG $ (singapore currency) and NT $ (Taiwan Currency).
Which one could understand that the currency of Taiwan did not work well since before replacing NT $ is the substitution of the dollar ($), I understand that NT should stay then. However, neither one nor the other happens.
I have not just found the problem, the rest of the characters do remove them.