in reply to Strip user-defined words with regexp
I would do it this way. I don't know if it deserves an high grade, but it gets the job done :).
my $count = 0; while ( $message =~ /([A-Za-z0-9]+)/g) { last if $count++ > 1; print "$1\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Strip user-defined words with regexp
by Limbic~Region (Chancellor) on Mar 04, 2004 at 14:54 UTC | |
by rnahi (Curate) on Mar 04, 2004 at 16:09 UTC | |
by Limbic~Region (Chancellor) on Mar 04, 2004 at 16:22 UTC | |
by Marcello (Hermit) on Mar 04, 2004 at 15:03 UTC |