any help is appreciated.

e.g. <nick> dog chased cat.CAT-cat but lost it

here's the remote code for on text trigger

on *:text:*dog*cat*:#pets:{

on above i want to strip text cat.CAT-cat and put it in a variable "animal" to call it in the command using variable "animal".

how do i do that

thanks