Regex for “AND NOT” operation
I’m looking for a general regex construct to match everything in pattern x EXCEPT matches to pattern y. This is hard to explain both completely and concisely…see Material Nonimplication for a formal definition. For example, match any word character (\w) EXCEPT ‘p’. Note I’m subtracting a small set (the letter ‘p’) from a larger set … Read more