const euroSymbol:String = String.fromCharCode(8364); // €
return euro.toFixed(2) + " " + euroSymbol;
}
Note that
represents the captured parenthetical group matched by the
args[1]
regular expression. This is the numerical portion of the U.S. dollar string: that is, the dollar
amount without the
resulting string (with a trailing
sign. The method applies an exchange rate conversion and returns the
$
symbol instead of a leading $ symbol).
€
usdPrice
Example: A Wiki parser
309