A little something I came up with. I'm sure there's other ways to do this, but here's mine smile

Code:
alias stripbg {
  if ($left($1,1) == $chr(3)) {
    var %num1, %num2
    %num1 = $remove($gettok($1-,1,44),$chr(3))
    %num2 = $left($gettok($1-,2,44),2)
    if ($right(%num2,1) isletter) { %num2 = $left(%num2,1) }
    if ((%num1) && (%num2)) {
      return $+($chr(3),%num1,$strip($1-))
    }
  }
}


Usage:

$stripbg(<text>)

NOTE:

A background color must be present within the text or this won't work.

Last edited by nycdiesel; 02/02/05 08:17 PM.