public final class ECMAScriptFlavor extends RegexFlavor
| Modifier and Type | Field and Description |
|---|---|
static ECMAScriptFlavor |
INSTANCE |
BACKREFERENCES_TO_UNMATCHED_GROUPS_FAIL, EMPTY_CHECKS_MONITOR_CAPTURE_GROUPS, FAILING_EMPTY_CHECKS_DONT_BACKTRACK, NESTED_CAPTURE_GROUPS_KEPT_ON_LOOP_REENTRY| Modifier and Type | Method and Description |
|---|---|
RegexFlavorProcessor |
forRegex(RegexSource source)
Given a
RegexSource, returns a RegexFlavorProcessor that can be used to parse
and translate the flavored regex into an ECMAScript regex. |
backreferencesToUnmatchedGroupsFail, canHaveEmptyLoopIterations, emptyChecksMonitorCaptureGroups, failingEmptyChecksDontBacktrack, nestedCaptureGroupsKeptOnLoopReentrypublic static final ECMAScriptFlavor INSTANCE
public RegexFlavorProcessor forRegex(RegexSource source)
RegexFlavorRegexSource, returns a RegexFlavorProcessor that can be used to parse
and translate the flavored regex into an ECMAScript regex.forRegex in class RegexFlavor