Think I have a text file with the following:
Hello my name is Jack Jordon. What is your name? Let there be a party. Is your name Jack Marais, I didn't think so Jack van Riebeeck. Good day Jack.
How can I find all the "Jack" words and the word after it with PHP?
So the results would be
Jack Jordon
Jack Marais
Jack van
Jack
Is it possible to do this with regex or is there a better way?