I was fiddling around with regex and this seems to do it too:
on !*:join:#:{ var %r = hey|hello|how are you today|whatsup|hi tokenize 124 $regsubex(%r,/( $+ %r $+ )/gi,$regml($r(1,\0))) msg # $nick $+ , $1 }