Ilya Zakharevich writes: > > IMO this really has to work in order for me to be able to grep through > > C/C++ code. > > Nope. Your REx is very unefficient. I see that part of this discussion leaked to p5p, and part not. What I meant is that the effective (and less demanding on the stack size) way to treat things like this is "((?>[^"\\]+)|\\.)*" Some other idea of Ed: C<*> could notice that it is inside (?>), and could do no backtracing at all. Ilya