I want to be able to do a search in a set of documents on two words "country" and "vehicle"... I want to only see documents that have both words in them but once a document has both words, I want to hit on all occurrences of either word.
I've tried
(?=(country|vehicle))
(?= country )(?= vehicle)
( (country)* | (vehicle)*) | ( (country .* vehicle) )
(?=.*vehicle)(?=.*country)
I can't seem to get it just right, any suggestions?
(?=.*vehicle)(?=.*country)
should work, what's the problem?