I’d like to return matches for a given search-string in a string. Plus the next word after the search-string.
Phrase to search for: “foobar foo”
Example Input:
foo foobar foo bar1 foobar1
foobar foos bar2 foobar2
foo barfoobar foos bar3 foobar3
Desired Matches:
foobar foo bar1
foobar foos bar2
barfoobar foos bar3
Use regex pattern