Hi: I'm trying to add SPAMFILTER using mIRC REGEX.
please help, but I was not very successful
4,8 test color testbold test underline 12345678 .,\-+

alias spm {
if $regsubex($1-,/([[:punct:]])/gi,$+([,$chr(92),x,$asc(\1),])) {
if $regsubex($ifmatch,/([[:cntrl:]])/g,$+([,$chr(92),x,$asc(\1),])) {
if $regsubex($ifmatch,/([[:space:]])/g,$+($chr(92),s)) {
if $isid { return $ifmatch }
if !$isid { echo : $ifmatch }
}
}
}
}
now result : [\x58][\x58]test\snormal\stext[\x3]0[\x44]6\stest\scolor\s[\x2]testbold\s[\x31]\stest\sunderline\s[\x15]reset\scolor\s[\x22]reverse\s[\x22]\s12345678\s[\x46][\x44][\x92][\x45][\x43]
There is no problem so far.
but the numbers could not.
wanted to be in this way results
[\x58]{2}test\snormal\stext[\x3]
\d[\x44]\d\stest\scolor\s[\x2]testbold\s[\x31]\stest\sunderline\s[\x15]reset\scolor\s[\x22]reverse\s[\x22]\s
\d{8}\s[\x46][\x44][\x92][\x45][\x43]
Thank you in advance for your help