I got a script that removes users nick from a string with a certain trigger. The problem is that when the nick has | character in it, regsub removes the nick but leaves the | character.. Can I somehow go around this..?
the regsub I have is:
regsub -all -nocase "$nick" $nick_string "" nick_string