i've got 2 raw binds 2 get the chan topic, 332 & 333, but the topic often has chars like "[" and "]".. so it finishes up with "\]" and things like that..
so regsub to the rescue, but it keeps returming me this damn error:
In lists, the use of proper list functions usually remove these pesty characthers... F.ex: if you are loading in the topic from the raw:
It comes in format
(the format is not 100% correct, but the general idea should be)
33x #chan :topic
You can use this to get the topic in correctly
set topic [split $topic ":"]
set topic [lindex $topic 1]
This should remove any pesky []...
If you want to use regexp for removing \ you need to use following escape sequence
"\\\\\\" or {\\} (not sure if i got the number \ correctly, but the amount is large...)