not sure exactly what you mean but
$replace(%319,$chr(35),08#9) }
the 9 should be the same color as
:11 $+ %319 that way when it replaces the #with color yellow it goes back to color 11 afterwords