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