Explains a regex pattern compiled with the given flags. Syntax errors are returned, not thrown.
The pattern without surrounding slashes, as passed to new RegExp().
new RegExp()
Optional
The flags, such as "gi".
"gi"
Analysis options.
The explanation, or the reason the pattern is invalid.
Explains a regex pattern compiled with the given flags. Syntax errors are returned, not thrown.