damn.. someone beat Jethro_ to the regex question though.. is that regex right.. i always thought it was
if ($regex($1-,/(^|\s)(rest of regex here) or is the $1 correct in this instance with the server notices