I would like to match a sentence if few words are present and discard the match if certain other words are present.
For example:
I would like to regex match to happen if the string has "consumer" and "services" and the match not to happen if the string has word "delayed".
Match to happen:
"Consumer are offered services based on the plans selected"
Match not to happen:
"In case ,the consumer services are delayed then penalty shall be beared."
Regex written for match:
(\b(?:consumer)\b.*?services)