Regex

Contains TermA , not contains TermB

Uses Negative Lookahead on TermB and Positive Lookahead on TermA.

^(?=.*Term A Exists)(?!.*TermB).*