Reputation: 114126
Both JS and AS3 implement RegEx as defined in the ECMAScript edition 3 language specification (ECMA-262).
Although I may not have any trouble converting the regular expressions themselves, in javascript I see the string.replace()
function used.
AS3 only has exec()
and test()
, are they equivalent to replace()
?
Upvotes: 1
Views: 166
Reputation: 111336
AS3 has String.replace()
-- the very link you mentioned. Any problems with this function?
Upvotes: 2
Reputation: 338416
String.replace(), as you'd expect.
It's a member of the String object, just like in JavaScript. exec()
and test()
are members of the RegExp object, just like in JavaScript.
Upvotes: 1