It was already asked here, but the asker got satisfied with a 2 character finding answer. I repeat his basic question:
Generally, is there any way, how to say not contains string in the same way that I can say not contains character with [^a]?
I want to create a regexp that matches two ending strings and everything between, but only if no other occurance of a given string is found inside. But I will be satisfied best with the general answer to the quoted question
Example:
The strings are "<script>"
and"</script>"
It should match
"<script> something something </script>"
but not
"<script> something <script> something something </script>"