7 chars · 1 line
8 chars · 1 line
7 chars · 1 line
8 chars · 1 line
Regex syntax error
A JavaScript RegExp cannot compile when an opening ( starts a group but the pattern ends before the matching ). The tester above preloads the broken pattern so you can reproduce the parser error locally. This tool is free to use. No account or payment is required.
Last updated
Capturing groups, non-capturing groups, lookarounds, and named groups all rely on parentheses. JavaScript validates that structure while constructing RegExp, so no input text is tested until the pattern compiles.
Close the group before testing the same text.
(abc(abc)Common questions
JavaScript compiles the RegExp first. An unclosed group is a pattern syntax error, so matching never begins.
Yes. Constructs such as (?:...) still require balanced parentheses.
Yes. \( and \) represent literal parentheses rather than grouping delimiters.
Debugging a specific Regex issue? Browse Regex troubleshooting.