The following regular expression matches for all Strings that contains
word TEST, not matter if in the beginning or in the end:
.*TEST.*
How would the regular expression look like that matches for all Strings that do not contain the word TEST?
For testing I am using the following code:
I know that it is possible to program this with the indexOf method of the
String class, but I need to implement this using regular expressions.