With this regular expression, I am able to choose a sentence based on a single word:
[^.]* word [^.]*\.
Is there a way to select a sentence with two or more words conditionally?
For instance, how would I go about selecting a sentence if word A and either word B or word C are present?
Assume that word A = "findings", word B = "support", word C = "research". In this scenario, the sentence below would be chosen as both conditions are met:
Their research findings strongly support the theory proposed in the study.
However, the sentence below would not be selected since it only contains one of the specified words:
Results showed conclusive evidence regarding the impact of their research findings on the community.