I haven't tested it either, but I have this fear that that could be a scarily slow regex.
Could be worth a try,though.
Oh, one possible optimization would be to make the quantifier {$min_depth} instead of {$min_depth,}. That would put the regex into the faster [^;]* part quicker. Maybe? It's all guesses :)
--
Mike
In reply to Re: Re: Maintaining horrible C with Parse::RecDescent
by RMGir
in thread Maintaining horrible C with Parse::RecDescent
by isotope
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |