I've got a nickcompleter I'm working on, and had started to work on bolding and underlining parts of the nickname so it looked like this:
nickname:
(The last character plus the : are also underlined).
This is what I used:
$replace(%nick,$left(%nick,1),$+(,,$left(%nick,1),,),$right(%nick,1),$+(,,$right(%nick,1),$chr(58),,))
However, the obvious issue here is that if there is any occurance of $left(%nick,1) and $right(%nick,1), in the nickname other than the first and last characters, it will get bolded and underlined with a : appended (depending on character etc).
I'm wondering how I could fix this?