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