thanks for helping much appreciated.

what i want is

<nick> where is cat.dog.buffalo says krisd
<nick> where is mouse.pig.snake says krisd
<nick> where is horse.cow.elephant says krisd

now on text "where" i want to assign the word before "says" to a variable "animal" and use %animal..

words before "says" are in this case
1 cat.dog.buffalo
2.mouse.pig.snake
3. horse.cow.elephant

it could be any word before "says"
thank you.