Ah, how stupid of me to make that error
Thanks for the help everyone!

Edit: I now have the following piece of code:
alias finddead {
if ($regex($1-, /(killed \w+)/i)) {
var %died $remtok($regml(1),killed,1,32)
}
return %died
}
It is supposed to return the word after the word "killed" but it doesn't work if the word contains symbols. How do I fix that?