I have a string of the form
2009-04-18 01:02:03 word1 word2 word3 leave this text alone
I'd like to remove "word1 word2 word3". This would be easy if those words were at the beginning or end of the string, because I could use start-of-line or end-of-line anchors.
Is there a technique for finding a location, such as the start of word1, in a string and using then that location as one would use an anchor?
Do I have the wrong idea and should be going at it a different way?