hi. i'm trying to replace all the
) and ;D , :P etc with colored versions of them with the help of regular expressions. do you have any suggestions why the code below doesn't work?
it sais Invalid parameters: $regsub (line xxx, script.mrc)
i logically think it should work.
other then that, i have another question: what's the /( at the beggining for and the )/g at the end? regular expressions don't have such things. is this a mirc specific? also, the parameter \1.... i haven't seen it before, usualy it's $1- right? is it an alias?
anyway, here's the code below (i don't have ay clue why it doesn't work). i need the smilies to be colored red with a yellow background.
if ($regsub(testname2,$1-,/((:|;)((\)+)|(D+)|(P+)|(>+)|(\(+)|(<+))))/g,4,8\1,%bbb) == 0) %bbb = $1-
haltdef etc... (the regsub is the problem.. not this code :) )