I have the following string and vector:
temp = "EarthMars Venus & Saturn PlanetsJupiter"
searchTerms = c("Earth", "Jupiter", "Mars", "Venus & Saturn Planets", "Neptune")
I want to split 'temp' based on the strings in 'searchTerms', so that I get the following:
result = c("Earth", "Mars", "Venus & Saturn Planets", "Jupiter")
Thanks for the help!