Here's one that will likely do it perfectly:)
raw 319:*: {
var %whoisreplaceincnum = 0
while ( $0 != %whoisreplaceincnum ) {
inc %whoisreplaceincnum
if ( $left( $gettok( $1- , %whoisreplaceincnum , 32 ) , 1) == ^ ) { tokenize 32 $puttok( $1- , & $+ $right( $gettok( $1- , %whoisreplaceincnum , 32 ) , -1) , %whoisreplaceincnum , 32 ) }
if ( $left( $gettok( $1- , %whoisreplaceincnum , 32 ) , 1) == * ) { tokenize 32 $puttok( $1- , ~ $+ $right( $gettok( $1- , %whoisreplaceincnum , 32 ) , -1) , %whoisreplaceincnum , 32 ) }
}
echo -a $2 on $3-
haltdef
}
A bit sloppy but seems to be working:)
MSG me if you spot any bugs in it or anything and I will be more then happy to help with it:)