Query module BackrefBeforeGroup

name
Back reference precedes capture group
description
If a back reference precedes the capture group it refers to, it matches the empty string, which is probably not what was expected.
kind
problem
problem.severity
error
id
js/regex/back-reference-before-group
tags
reliability correctness regular-expressions
precision
very-high

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.