spatterson has asked for the wisdom of the Perl Monks concerning the following question:
foreach (@fields) { m/%%(\w+?)%%.*%%(\w+?)%%/; push @matches, $1, $2; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex: list each ocurrence of a pattern in a line
by ikegami (Patriarch) on Nov 19, 2008 at 11:28 UTC | |
by spatterson (Pilgrim) on Nov 19, 2008 at 12:05 UTC |