1

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()?

2 Answers 2

2

AS3 has String.replace() -- the very link you mentioned. Any problems with this function?

Sign up to request clarification or add additional context in comments.

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.