It has already been asked here, but the responder was satisfied with the response to 2 characters. I repeat his main question:
As a rule, is there a way, say, does not contain a string in the same way that I can say does not contain with the symbol [^ a]?
I want to create a regular expression that matches two end lines and everything, but only if no other visibility of this line is found inside. But I will be better satisfied with the general answer to the question quoted
Example:
Strings "<script>"and"</script>"
It must match
"<script> something something </script>"
but not
"<script> something <script> something something </script>"
source
share