Function isPotentiallyEmpty
- isPotentiallyEmpty(element, flags): boolean
-
Parameters
-
element: Alternative | CapturingGroup | ClassRangesCharacterClass | UnicodeSetsCharacterClass | CharacterClassRange | ClassIntersection | ClassStringDisjunction | ClassSubtraction | ExpressionCharacterClass | Group | LookaheadAssertion | LookbehindAssertion | Quantifier | StringAlternative | Backreference | EdgeAssertion | WordBoundaryAssertion | Character | AnyCharacterSet | EscapeCharacterSet | CharacterUnicodePropertyCharacterSet | StringsUnicodePropertyCharacterSet | readonly Alternative[]
-
Returns boolean
Returns whether at least one path of the given element does neither consume characters nor assert characters.
Backreferences
A backreferences will only be considered potentially empty, iff at least one of the following conditions is true:
Relations
isPotentiallyEmpty(e) -> isPotentiallyZeroLength(e)