regex-explain - v1.6.0
    Preparing search index...

    Interface RegexExplanation

    A successfully explained regex.

    interface RegexExplanation {
        pattern: string;
        flags: string;
        ok: true;
        nodes: readonly ExplanationNode[];
        flagExplanations: readonly FlagExplanation[];
        length: LengthSummary;
        warnings: readonly BacktrackingWarning[];
        multiline: boolean;
    }

    Hierarchy (View Summary)

    Index
    pattern: string

    The pattern, without slashes.

    flags: string

    The flags.

    ok: true

    Discriminates success from RegexExplanationError.

    nodes: readonly ExplanationNode[]

    Top-level explanation steps, in match order.

    flagExplanations: readonly FlagExplanation[]

    The meaning of each flag, in the order given.

    How long a match can be.

    warnings: readonly BacktrackingWarning[]

    Catastrophic backtracking problems; empty when none were found or the check was disabled.

    multiline: boolean

    Whether ^ and $ match at line breaks anywhere in the pattern, through the m flag or a group such as (?m:...), so that text is matched as separate lines.