Assuming the words in %goodwords and %badwords contain only alphanumeric characters (a-z and 0-9), you can use something like this:
Code:
if $regex($1-,$+(/,$replace([color:red]%goodwords[/color],$chr(32),,$chr(44),|),/iS)) { ... }


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com