in reply to My regex is too greedy!

Why not just:

my $user = (split(/ +/, $message))[12];
or something similar, depending on how you've done the previous splits. This should work as long as the message is in a standard format.

kelan


Perl6 Grammar Student