This might meet the reqs?
my( $word1, $word2 ) = ( grep $_, split /[^A-Za-z0-9]+/, $message )[0, +1]
In reply to Re: Strip user-defined words with regexp
by BrowserUk
in thread Strip user-defined words with regexp
by Marcello
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |