I think I got the numbers right...
alias cfont {
if ($regex($1-,/^CUSA\|\^\|.+?\|\^\|&[0-9A-Z]+\|\^\|[BI]*\|\^\| \72/iS) == 0) { halt }
var %a, %b = $regsub($1,/^CUSA\|\^\|.+?\|\^\|&[0-9A-Z]+\|\^\|[BI]*\|\^\| \72/iS,,%a)
var %text = $remove($1-,%a)
if (BI == $gettok(%text,7,124)) var %t = bold & italic
elseif (B == $gettok(%text,7,124)) var %t = bold
elseif (I == $gettok(%text,7,124)) var %t = italic
elseif ($gettok(%text,7,124) !isin BI) var %t = normal
echo -a Font: hex colour $right($gettok(%text,5,124),-2) $gettok(%text,3,124) in %t
}
Edited to support text without cusa's font
Re-edited to work properly
Edited Sep 13, 2005 4:30 PM by Cleric xtx