in reply to Strip user-defined words with regexp
This might meet the reqs?
my( $word1, $word2 ) = ( grep $_, split /[^A-Za-z0-9]+/, $message )[0, +1]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Strip user-defined words with regexp
by Marcello (Hermit) on Mar 04, 2004 at 19:12 UTC | |
by BrowserUk (Patriarch) on Mar 04, 2004 at 19:56 UTC |