This is kinda pointless if you ask me, regex is quite slow in mIRC, although, indeed the possibilities using it; are endless. You'd be better off with a few $istoks and $strip. Not to mention if you match, and capture, and then use $regml(N) it removes the need for RE-STRIPPING $1-