Files
Bas Leijdekkers 4a7760e002 RegExp: new "Suspicious back reference" inspection (IDEA-265242)
GitOrigin-RevId: 45e50a07ed61263c502a7e4fedcc15376b49095f
2021-12-07 12:07:26 +00:00

19 lines
590 B
HTML

<html>
<body>
Reports back references that will not be resolvable at runtime.
This means that the back reference can never match anything.
A back reference will not be resolvable when the group is defined after the back reference,
or if the group is defined in a different branch of an alternation.
<p><b>Example of a group defined after its back reference:</b></p>
<pre><code>
\1(abc)
</code></pre>
<p><b>Example of a group and a back reference in different branches:</b></p>
<pre><code>
a(b)c|(xy)\1z
</code></pre>
<!-- tooltip end -->
<p><small>New in 2022.1</small>
</body>
</html>