in reply to My regex is too greedy!
Why not just:
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.my $user = (split(/ +/, $message))[12];
kelan
Perl6 Grammar Student
|
|---|