RegEx all URLs that do NOT contain a string

Andy picture Andy · Dec 29, 2012 · Viewed 11.7k times · Source

I seem to be having a bit of a brain fart atm. I've got Google counting my transitions correctly but I'm getting false positives.

This is the current goal RegEx which works great.

^/click/[0-9]+\.html\?.*

But I also want it the RegEx to NOT county anything that has &confirm=1 I'm quite stuck as to how to do that in the RegEx, I thought I might be able to use [^(?:&confirm=1)] but I don't think that's valid.

Answer

sneakyfildy picture sneakyfildy · Apr 19, 2016

Use "exclude", not "include" filter option