Cannot find out how to write a regular expression

Hello!

I am working in a Java EE project with Java 7 and searching for a solution how to write a regular expression. On the tutorial sites like RegularExpressions.info, I couldn't find the answer, and I was unfortunately inapt to construct it on a test site. So, I ask you.

What I need is a regular expression that runs under Java 7 and filters the input such that it returns any set of characters & words that do not contain the words CONTROL and TRACTION in a case-insensitive way. How to write it?

Thank you for your help!

Notice: Although this is a regular expression question, I added the topic "Java", as it seems that there are some diversions between what I used under UNIX decades ago & what Java supports. For instance, I had to correct my expressions from the commented code to the uncommented one:

I personally wouldn't use regex as your loss in efficiency and maintability outweighs your gain in code conciseness. It's pretty simple to just look for substrings, but if you're determined to use regex, in Java, one way would be:

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

Let me specify it again: ANY text that does not contain "CONTROL" or "TRACTION" should pass regardless of case, order, or other restrictions. For instance, "attraction" should pass the check. Actually, I do not use the regularExpression variable above. So the code I use is

Let me specify it again: ANY text that does not contain "CONTROL" or "TRACTION" should pass regardless of case, order, or other restrictions. For instance, "attraction" should pass the check.

I still don't think it is clear. So from that you are saying that even though "attraction" has contains the set of characters "traction" it should still pass because the *word* is not traction. Therefore, while "attraction" passes, "at traction" should NOT pass and also "traction" should NOT pass.

If that is correct, can you please verify that even though you have put the test "out of control" in the lower group with the other examples that SHOULD pass, this specific example "out of control" should NOT pass?

Once we clarify all that, one thing that will make this easier... rather than finding the pattern matches or text NOT containing either of your words, can we use a pattern that matches either word but then invert the result in Java (rather than in the pattern), ie. is the following suitable, noting the ! in front of the execution of the regex (I've also changed the code, a) to actually use 'regularExpression' and b) to use find() rather than adding extra .* to the pattern)

I really don't give a about the points, but I find it interesting that you say that, when my earlier post gives the same output!

Yes, mccarl is right about that and shouldn't have been overlooked points-wise. It must be said though that use of the regex package isn't necessary, nor is the Unicode flag necessary (the pattern has no Unicode in it)