I have the following phrases for example:
This is a test for wordA.
This is a test for wordB.
I need to grab the phrase before wordA OR wordB. So my output for both sentences would be "This is a test for". I need it to look for both wordA and wordB, grabbing the phrase before either word.