Is there a way to split string like:
"importanttext1 has gathered importanttext2 from stackoverflow."
I want to grab anything before the word "has"
, and just want to grab the one word after "gathered"
, so it doesn't include "from stackoverflow."
. I want to be left with 2 variables that cointain importanttext1
and importanttext2