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

    Interface ErrorModel

    A syntax error, ready to display.

    interface ErrorModel {
        message: string;
        pattern: string;
        index?: number;
        line?: string;
        caret?: string;
    }
    Index
    message: string

    Why the pattern is invalid, such as "Unterminated group", without the parser's "Invalid regular expression" label and copy of the pattern, which views show on their own.

    pattern: string

    The pattern.

    index?: number

    Offset of the error in the pattern, if known.

    line?: string

    The line of the pattern that holds the error, when its offset is known.

    caret?: string

    A line of spaces and a ^ that, printed under line, points at the error.