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

    Interface ExplanationModel

    Everything an explanation view shows, in display order, with descriptions already split so that a renderer only maps it to markup.

    interface ExplanationModel {
        literal: string;
        error?: ErrorModel;
        warnings: readonly WarningModel[];
        rows: readonly ExplanationRow[];
        length?: string;
        flags: readonly FlagModel[];
        multiline: boolean;
    }
    Index
    literal: string

    The regex as /pattern/flags.

    error?: ErrorModel

    The syntax error, for an invalid pattern; the other lists are then empty.

    warnings: readonly WarningModel[]

    Backtracking warnings.

    rows: readonly ExplanationRow[]

    The steps, flattened with their depths.

    length?: string

    How long a match can be, such as "Matches 3 to 7 characters.", for a valid pattern.

    flags: readonly FlagModel[]

    The flags' explanations.

    multiline: boolean

    Whether ^ and $ match at line breaks anywhere in the pattern; false for an error.