in reply to Word replace - notetab light vs perl
Your code could still be optimized to run two magnitudes faster.
If you'll match/replace entire contents as a string with a single s///g expression, instead of your "while" construct, you'll see dramatic speed increase.
You'll be surprised many times to see how fast Perl sometimes is....
Best regards,
Courage, the Cowardly Dog
In Section
Meditations