It does. I was just trying to explain what quickstep was trying to tell you since you guys werent on the same wavelength. IT will change all text of a color. I just got tired of watching the post argument. The only time this fix would work, is if you had a black image as the background or whatever.
Like I said, I was just trying to explian what he was saying.
My issue with this, is why are you using regsub in a while loop with regex.
.echo -q $regsub($1-,/\x03(\d)\D/g,\x03 $+ 0 $+ \1,%text)
%text should have all the colors fixed to be prefixed with a 0. (I believe, Im still pretty new with regex). If that isnt right, it should be somewhat close. Even though they way you have it, and the way I just put it there, wont take into account say, if the background color is a single digit.