0 votes

Basically I'm looking for where people did not use the variable they were supposed to use for the company name. I do want the hits if "foo" occurs in the same line as "foo.com" or "foo<\".

by (35 points)

1 Answer

0 votes

Using regular expression lookahead functionality should solve your problem, something like this:

foo(?!(.com|<\\))
by (30.3k points)
...