What is the necessary regular expression to match the € special character from the following html string?
€20.000.000,00
Ultimately, I want to strip the € symbol from the number. Currently, my code looks like this:
num = $("#number").html();
num.replace('€','');
$("number").html(num)
but of course I need to replace '€' with the correct regex.
It appears that by the time you are manipulating the text with jQuery, the HTML abbreviation
€has been replaced by its actual unicode value — the true single character€. A regular expression which refers to the unicode character value should do the trick for you.