RegSubEx Strip/Remove
Platform: mIRC
Published Dec 21, 2010
Updated Dec 29, 2010
I was getting tired of always having to do $strip and $remove separately and also wanted to try and use regsubex to remove.
Anything you want removed from the string just input into $prop
Usage: //echo -a $strp(@test1 !test2 wtest3 Wtest4).@!w
This will return: test1 test2 test3 Wtest4
I would love feedback on a better/more proper way to code using regsubex. ;)
alias strp {
var %x, %a $strip($1), %b $prop, %c $iif($2,$v1,g),%d /[ $+ %b $+ ]/ $+ %c
.echo -q $regsub(%a,%d,,%x) | return %x
}