Hello,
I think the following issue on a regex in a .php file is a false positive :
$pattern = ‘@(<a\[^>\]+?href=“(\[^”\]*)"\[^>\]*?>(.+?))@i’;
I think the following issue in a .twig template file is also a false positive :
Also, the error message itself is incorrect. The first error message above says:
The tag “a\[^” has no corresponding closing tag
when it should say something like:
The tag “<a>” has no corresponding closing tag
I am using SonarQube Community v26.1.0.118079.

