Differences between Regular Expressions in Java and ECMA-262 (AS, JS)

I need to convert Java regular expressions to ActionScript regular expressions.

Apparently, there are no pre-converters, so I'm trying to write them myself. Is there any resource that lists all the differences?

I am aware of regular-expressions.info, but there does not seem to be an exhaustive list of differences.

thank

+5
source share
3 answers

- , - ActionScript, ECMA-262, , . AS3 PCRE, PHP preg_, lookbehind, , , Java. Java dotall JS ignore-case multiline. inline- ((?imsx)).

PCE Unicode , Java, , , , ActionScript. Unicode , UTF-8 PCRE; , ActionScript UTF-16 ECMA-262. , Unicode , , JavaScript.

+7

:

java.util.regex                                  RegExp.prototype
Character class set operations
(?#…) comment patterns
Named capture
The /y (sticky) modifier
The /x (extended) modifier
\u10000+ Codepoints
Possessive quantifiers
Quotation
Exception Handling
Linebreak matcher

+1
0
source

All Articles