I am using Python in case it matters.
I am trying to grab all 6-long numbers from a file: ([0-9]{6}) which works fine.
But I want to ignore any such numbers if they are immediately preceded by "Obsolete #:".
So for example Obsolete #:748275 would get ignored, but not something else 957252.
I am trying stuff like [^Obsolete #:]([0-9]{6}) but it simply doesn't work / grabs the number anyway.