The goal of
ecma_regex is to provide the same functionality as the regex crate in ECMAScript regular expression syntax.
- Reliable regex engine from QuickJS
- Passes nearly 100% of the ECMAScript Test Suite tests
Build on top of libregexp-sys.
RegexpDifference to ECMAScript
Regexpin ECMAScript is stateful while
Regexpin ECMAScript need to deal with flags like
ecma_regexdoesn't. The corresponding behaviors in different flags are implemented as different methods in
It's possible to write a
Regexp crate having the same behavior as ECMAScript
Regexp, but it's not the goal of this crate.
The API try to align with regex crate and reuse it's documents, credit to the author and contributors.