Files
openide/RegExpSupport/resources/inspectionDescriptions/RegExpUnexpectedAnchor.html
Bas Leijdekkers c50a102e50 update RegExp inspection descriptions with examples
GitOrigin-RevId: 1daa0f68ede1036d134127cdacd0b61e5d438ca8
2021-06-06 13:43:39 +00:00

15 lines
541 B
HTML

<html>
<body>
Reports <code>^</code> or <code>\A</code> anchors not at the beginning of the pattern and
<code>$</code>, <code>\Z</code> or <code>\z</code> anchors not at the end of the pattern.
In the wrong position these RegExp anchors prevent the pattern from matching anything.
In case of the <code>^</code> and <code>$</code> anchors, most likely the literal character was meant and the escape forgotten.
<p><b>Example:</b></p>
<pre><code>
(Price $10)
</code></pre>
<!-- tooltip end -->
<p>
<small>New in 2018.1</small>
</body>
</html>