on *:text:*:#:{ if (!$regex($1,/(^| )\(rock\)( |$)/iS)) && ($regex($2-,/(^| )rock( |$)/iS)) { do something } }