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
In reply to Re: My regex is too greedy!
by kelan
in thread My regex is too greedy!
by hans_moleman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |