![]() |
|
Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: OS X vs. My Regexby tall_man (Parson) |
on Apr 16, 2003 at 19:04 UTC ( #251003=note: print w/replies, xml ) | Need Help?? |
You are making the regular expression engine do a lot of extra work by:
1) Using capturing parenthesis instead of noncapturing ones .
These inefficiencies are probably causing the regular expression engine to go wild and run out of memory. By the way, why not use module Text:Balanced instead? Update: Here is a brushed-up version with my suggestions added:
Update2: After recommending Text::Balanced for this problem, I decided to try it for myself.
In Section
Seekers of Perl Wisdom
|
|