Contains TermA , not contains TermB
Uses Negative Lookahead on TermB and Positive Lookahead on TermA.
^(?=.*Term A Exists)(?!.*TermB).*
- Not sure why ^ start of line is used
- (?=.*AAA) Positive Lookahead
- (?!.*BBB) Negative Lookahead
- .* Matches any char