|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Analyzing regular expression performanceby grinder (Bishop) |
| on May 12, 2006 at 11:31 UTC ( [id://549042]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Are there tools or general methods for breaking down an expression The 'debug' mode of re will let you see how the expression is compiled, and how it behaves when matching. It is usually obvious to see where backtracking is taking place.
Another trick is to "leave crumbs" is the pattern, to see how often the engine runs over a particular section of the pattern, for instance:
• another intruder with the mooring in the heart of the Perl
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||