dxxd116 has asked for the wisdom of the Perl Monks concerning the following question:
When the text to be matched($string) is a little over 1 Megabytes, this regexpression runs forever and never return.my ($mail)=$string=~m/([\w._+-]+@(?:[\w-]+\.)+\w{2,5})(?<!\.jsp|\.asp| +\.jpg|\.htm)\W/mi;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expression hanging inside a child thread
by ikegami (Patriarch) on Apr 17, 2009 at 14:00 UTC | |
by dxxd116 (Beadle) on Apr 17, 2009 at 20:27 UTC |