I would like to check in a given string that if the word TEST appears in the string then it is NOT inside the pattern ().
The regex should return true for the following example strings:
You can use this lookaheads regex:
(?!..)is negative lookahead to fail the match if
([..TEST..])appears anywhere in the line.
(?=.*TEST)is positive lookahead to ensure that line contains