<?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/17863" />

	<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>2010-08-10T17:24:37-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Luminous]]></name></author>
		<updated>2010-08-10T17:24:37-04:00</updated>

		<published>2010-08-10T17:24:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93858#p93858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93858#p93858"/>
		<title type="html"><![CDATA[[solved] regexp or regsub im lost]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93858#p93858"><![CDATA[
That's not so much a fix as it is a band-aid. You should avoid doing a filter like that unless all else fails. Whenever you declare something as a list, each list element is separated by what is in {}. So if you declare set something [lindex $var 0], you'd get the first bit in {}. But if you don't output this correctly, the {} remains in the text. This is why you use join, to turn it back into a string, thus dropping the {} from the text automatically. <br><br>There is an article "How to write scripts that won't choke on special chars", but my net is too crappy atm to find it. :S<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11101">Luminous</a> — Tue Aug 10, 2010 5:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2010-07-14T08:59:12-04:00</updated>

		<published>2010-07-14T08:59:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93529#p93529</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93529#p93529"/>
		<title type="html"><![CDATA[[solved] regexp or regsub im lost]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93529#p93529"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regsub -all {\{} $search "" search_cleanregsub -all {\}} $search_clean "" search_even_clean</code></pre></div>fixed it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Wed Jul 14, 2010 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2010-07-13T20:15:36-04:00</updated>

		<published>2010-07-13T20:15:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93527#p93527</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93527#p93527"/>
		<title type="html"><![CDATA[[solved] regexp or regsub im lost]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93527#p93527"><![CDATA[
Somewhere you've confused a tcl-list as a string. <br><br>Try using:<br>regexp {regexp here} [join $var] - var<br><br>Wrap a join around your $var-iable inside the regular expression. If this fixes it, then you know you have a tcl-list vs string issue. Don't use this as a permanent fix, find the issue and correct it. This is merely to test if indeed it is a list being treated as a string causing the problem.<br><br>Report back if you need more help <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Tue Jul 13, 2010 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2010-07-14T09:01:07-04:00</updated>

		<published>2010-07-13T13:45:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93525#p93525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93525#p93525"/>
		<title type="html"><![CDATA[[solved] regexp or regsub im lost]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93525#p93525"><![CDATA[
my bot reads from a db and returns the info in channel, only problem is if $line has ...'s and or -_ it displays ok in the channel <br><br>but if $line contains spaces instead of ...'s and or -_ i get { $line }<br><br>heres an example hope someone can help, been messing around and googleing for ages....<br><br>#with the spaces it returns $line with { } either end <br><div class="codebox"><p>Code: </p><pre><code>Thanks:(hl) You have been marked as FiLLING ReqId:(64) For:( full  {this is an example} )</code></pre></div>and when there is ....'s and -_'s in it doesnt have the { }'s either end<br><div class="codebox"><p>Code: </p><pre><code>Thanks:(hl) You have been marked as FiLLING ReqId:(64) For:( full  this.is.an-example )</code></pre></div><br>thanks all hope i gave enough info <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Tue Jul 13, 2010 1:45 pm</p><hr />
]]></content>
	</entry>
	</feed>
