You need to Benchmark your code with data representative of your application. If you post a sample of what you're really trying to do, some nice monk here might collect all of the ideas into a benchmark and post it here (which you can then run on your target system for comparison).
BTW, how do you know it was the regex?
-QM
--
Quantum Mechanics: The dreams stuff is made of
In reply to Re: Compiling Search/Replace Regexs
by QM
in thread Compiling Search/Replace Regexs
by InterGuru
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |