I'm looking to programatically take something like this: -
"the quick brown fox jumped over the lazy dog"
Then run some code and remove some words, as so: -
"the quick brown fox jumped over the dog"
Ideally I'd like to shove a bookmark at the beggining of some text and after it and remove a whole section (or another appropriate marking scheme).
"the quick brown fox jumped over the [lazy] dog"
Can anyone advise on the best way to do this.