This should be an easy one for the regex masters out there.
I need to match all phrases NOT:
“The smoking areas are located” OR
“The smoking areas are located “
Input:
The smoking areas are located
Blah blah blah
The smoking areas are in the basement
The smoking areas are located in the back of the building
Matches:
Blah blah blah
The smoking areas are in the basement
The smoking areas are located in the back of the building
Something like this should do the trick:
It basically matches anything, given that “The smoking areas are located” doesn’t occur. (Negative look ahead)
Thanks to Joseph for pointing out I had missed one of the cases.