title: Regex - how to match everything except a particular pattern
body: <p>How do I write a regex to match any string that doesn't meet a particular pattern? I'm faced with a situation where I have to match an (A and ~B) pattern.</p>