Problems? Is your data what you think it is? | |
PerlMonks |
Re: Timeout alarm for regexby wfsp (Abbot) |
on Jul 27, 2006 at 17:09 UTC ( [id://564172]=note: print w/replies, xml ) | Need Help?? |
Can anyone give me a particular regex against a string that would take a long time to complete...From Progamming Perl:
"... If you remove the "b" from the string the pattern will probably run for many, many years before failing. Many, many millennia. Acutally, billions and billions of years.*" later "* Actually, it's more in the order of septillions and septillions. We don't know how long it would take. We didn't care to wait around watching it not fail. In any event, your computer is likely to crash before the heat death of the universe, and this regular expression takes longer than either of those." Any help? :-) Apologies to O'Reilly for any infringments.
In Section
Seekers of Perl Wisdom
|
|