In AS3, you have a function in a line with this signature:
function replace(pattern:*, repl:Object):String
Answer: An object can also specify a function. If you specify a function, the string returned by the function will be inserted instead of the corresponding content.
Also, is it possible to get the original string in which I want to replace things?
(In AS3 you can get the source string
var input:String = arguments[2];
)
I do not see the properties in the Match class containing the source string ...
function c # regex replace actionscript-3
Lieven cardoen
source share