In my system the var PRICE will have different formats depending on the CURRENCY configuration set by the user. So I can get values like:
a) price: $ 4.5 || b) price: 4.5 € || c) price: Bs. 4.5 || d) price: 4.5 ₵
I don't know whether the Currency symbol will be before or after the number and I don't know what symbol it is going to be (It's OpenERP framework so changing the format is not an option)
How do I get the number despite the currency symbol ??
/[\d.]+/? What do you care what symbols there are?