<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3741" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-02-24T08:59:45-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3741</id>

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-02-24T08:59:45-04:00</updated>

		<published>2003-02-24T08:59:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17010#p17010</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17010#p17010"/>
		<title type="html"><![CDATA[regsub prob]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17010#p17010"><![CDATA[
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:<br><br>It comes in format <br>(the format is not 100% correct, but the general idea should be)<br>33x #chan :topic <br><br>You can use this to get the topic in correctly<br><br>set topic [split $topic ":"]<br>set topic [lindex $topic 1]<br><br>This should remove any pesky []...<br><br>If you want to use regexp for removing \ you need to use following escape sequence<br>"\\\\\\" or {\\} (not sure if i got the number \ correctly, but the amount is large...)<p>Statistics: Posted by Guest — Mon Feb 24, 2003 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-02-24T08:26:22-04:00</updated>

		<published>2003-02-24T08:26:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17008#p17008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17008#p17008"/>
		<title type="html"><![CDATA[regsub prob]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17008#p17008"><![CDATA[
There is no need to regsub.<br><br>The issue with the /, is usualy the cause of using Tcl lists and strings incorrectly.<br><br>The only thing I can sugest, is looking at the post in the FAQ forum, or posting the code, so we can point you in the right direction.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Feb 24, 2003 8:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[jamesp0tter]]></name></author>
		<updated>2003-02-24T07:18:50-04:00</updated>

		<published>2003-02-24T07:18:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17006#p17006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17006#p17006"/>
		<title type="html"><![CDATA[regsub prob]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17006#p17006"><![CDATA[
i've got 2 raw binds 2 get the chan topic, 332 &amp; 333, but the topic often has chars like "[" and "]".. so it finishes up with "\]" and things like that..<br>so regsub to the rescue, but it keeps returming me this damn error:<br><br>[11:14] Tcl error [topic]: couldn't compile regular expression pattern: invalid escape \ sequence<br><br>what 2 do ?<br><br>i'm using -&gt; regsub -all "\\" $tpc "" tpc &lt;- anything wrong ? which should i use ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><br><br>tks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2614">jamesp0tter</a> — Mon Feb 24, 2003 7:18 am</p><hr />
]]></content>
	</entry>
	</feed>
