
I need to search/replace some text, BUT in the same case as the original; and only for whole words; and as fast as possible.
Fast speed is vital because I will be scanning large blocks of text (500 KB or more). I'm hoping for less than a second for the job.
Here's an example of "alot" to be replaced with "a lot" in the manner I require:
Original: The zealot drank alot. Quite aLoT in fact.
Modded: The zealot drank a lot. Quite a LoT in fact.
See how the blue text is left intact, since it's part of another word? That's vital, too.
So... anyone feel up to the challenge?
