>perl -wMstrict - "my $str = 'here a matchme there a matchmoe too'; ;; if (my @matches = $str =~ m{ (matchmo?e) }xmsg) { print qq{matched @matches}; } " matched matchme matchmoe