ninja_byte has asked for the wisdom of the Perl Monks concerning the following question:
of course, on files with 100+ email addresses, this thing loops like crazy. I understand *why* perl is tripping out on it somewhat, but I don't know what to use to fix it, or as an alternate method. now that I think about it... I could probably use grep... Anyway, and suggestions are appreciated. mC$filetext =~ m/( [\w\-._+]+ #first part of email address \@[\w\-.]+ #second part .{0,5} #any char/separator ) {50}/sgmx
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: looping regex
by McDarren (Abbot) on Apr 11, 2006 at 02:02 UTC | |
by ninja_byte (Acolyte) on Apr 11, 2006 at 02:06 UTC | |
by jwkrahn (Abbot) on Apr 11, 2006 at 12:45 UTC |