You can use regular expressions for replacing data. Most regex engines that I'm aware of (including the VBScript COM one) use a Nondeterministic Finite Automaton (NFA) engine to handle the parsing and data replacement, which you should find runs fast enough to handle those types of tasks relatively quickly.
_________________________
Stevie