Jethro_ Try both regex with the following two strings.
.cmd echo 0 #ChanName test .cmd echo 1 #ChanName test