If his script is for a bot he did it right. (talking about the yournickhere)
Cant he just use:
on $*:text:$(/(\s\Q $+ $me $+ \E\b)|(\s\Q $+ $anick $+ \E)\b/iS):#:{
if (%flood [ $+ [ $nick ] ]) { return }
set -eu3 %flood [ $+ [ $nick ] ] $nick
if ($chan == #anychan) { halt }
elseif ($istok(operserv|iserv|chanserv|botserv,$nick,124)) { halt }
else { inc %highlight | notice $me $($+([ $+ [ $nick ] ]),2) highlighted you in $chan $+ . You have been highlighted %highlight times. | notice $nick You highlighted $regml(1) $+ . You are number: %highlight that highlighted $regml(1) $+ . }
}