mkahn has asked for the wisdom of the Perl Monks concerning the following question:
The next task is to compare the list to the original list and remove the matches: raw list - bad list = good list.
But before I can do that, I need to fix my regex, as it seems to only match the first one in each line. I obviously don't have the grasp of /g I thought I did.
Why am I only getting 1 match per line? Heres a smaple line from the data file:push (@list, "$1\n") and $count++ if /\b([\w]+@[\w]+\.[\w]{3})\b/g;
wings@yahoo.com <wings@yahoo.com>; wine@hotmail.com <wine@hotmail.com>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: scripty email address regex stuff
by chromatic (Archbishop) on Oct 15, 2003 at 20:59 UTC | |
by mkahn (Beadle) on Oct 15, 2003 at 22:50 UTC | |
|
Re: scripty email address regex stuff
by Abigail-II (Bishop) on Oct 15, 2003 at 21:30 UTC | |
|
Re: scripty email address regex stuff
by Beechbone (Friar) on Oct 16, 2003 at 11:38 UTC | |
by mkahn (Beadle) on Oct 16, 2003 at 15:50 UTC | |
by mkahn (Beadle) on Oct 16, 2003 at 19:30 UTC |