Top "Regex-negation" questions

Regex-negation is an operation performed on a character class that complements its pattern.

Mongo regex for "not match" or inverse

My mongo documents all contain a field called templateName. There are a few documents that contain the value: a_SystemDefaultTemplate, …

regex mongodb mongodb-query regex-negation
How to exclude a string in the middle of a RegEx string?

I have a lot of PHP class files, that contain methods like findFoo(). I want to find (with the RegEx …

regex regex-negation regex-lookarounds negative-lookahead negative-lookbehind
Regex to match a whole string only if it lacks a given substring/suffix

I've searched for questions like this, but all the cases I found were solved in a problem-specific manner, like using !…

regex regex-negation