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:
- TEST
- this is my ([TEST
- this is my TEST]) number 2
- ([bla]) TEST ([bla])
Should return false for the following example strings:
- this is my ([TEST]) oops
- this is my ([bla TEST bla])
- this is my ([TEST TEST])
- string without the tes* word
thanks
([TEST TEST])? Does that match or not?([bla]) TEST ([bla])?