Top "Regex-negation" questions

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

Regular expression to match a line that doesn't contain a word

I know it's possible to match a word and then reverse the matches using other tools (e.g. grep -v). …

regex regex-negation
Regex - Does not contain certain Characters

I need a regex to match if anywhere in a sentence there is NOT either < or >. If either &…

regex regex-negation
RegEx to exclude a specific string constant

Can regular expression be utilized to match any string except a specific string constant let us say "ABC" ? Is this …

regex regex-negation
Regex to get the words after matching string

Below is the content: Subject: Security ID: S-1-5-21-3368353891-1012177287-890106238-22451 Account Name: ChamaraKer Account Domain: JIC …

regex expression regex-negation regex-lookarounds
RegExp matching string not starting with my

For PMD I'd like to have a rule which warns me of those ugly variables which start with my. This …

regex regex-negation pmd
Regular expression that doesn't contain certain string

I have something like this aabbabcaabda for selecting minimal group wrapped by a I have this /a([^a]*)a/ which …

regex regex-negation
How to negate the whole regex?

I have a regex, for example (ma|(t){1}). It matches ma and t and doesn't match bla. I want to …

regex regex-negation
Regular expression for a string containing one word but not another

I'm setting up some goals in Google Analytics and could use a little regex help. Lets say I have 4 URLs …

regex google-analytics regex-negation
Regular Expression to exclude set of Keywords

I want an expression that will fail when it encounters words such as "boon.ini" and "http". The goal would …

regex regex-negation
Negate characters in Regular Expression

How would I write a regular expression that matches the following criteria? No numbers No special characters No spaces in …

regex regex-negation