ReadonlypatternThe pattern, without slashes.
ReadonlyflagsThe flags.
ReadonlyokDiscriminates failure from RegexExplanation.
ReadonlymessageThe parser's error message.
Optional ReadonlyindexOffset into the pattern where the error was detected, if known.
A regex that could not be parsed.