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<\".

asked by (30 points)

1 Answer

0 votes

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

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