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

	<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>2002-09-02T18:41:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-02T18:41:45-04:00</updated>

		<published>2002-09-02T18:41:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10366#p10366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10366#p10366"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10366#p10366"><![CDATA[
Thank you so much, I fixed all my problems now.. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Mon Sep 02, 2002 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-02T18:38:08-04:00</updated>

		<published>2002-09-02T18:38:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10363#p10363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10363#p10363"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10363#p10363"><![CDATA[
It only replaces all matches if you use the -all flag.<br><br>regsub {^[^\w]*[\w]+[^\w]*} $text "" text<br><br>That replaces the first word and any space around it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Sep 02, 2002 6:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-02T18:29:23-04:00</updated>

		<published>2002-09-02T18:29:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10361#p10361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10361#p10361"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10361#p10361"><![CDATA[
oh... hehehe, I see... learning a lot here<br><br>I was using regsub before, but that replaces all occurences of the pattern, I only want to kill the first word in a string...<p>Statistics: Posted by Guest — Mon Sep 02, 2002 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-02T18:26:30-04:00</updated>

		<published>2002-09-02T18:26:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10360#p10360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10360#p10360"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10360#p10360"><![CDATA[
Hehe no that's a misunderstanding of what the trim command does. You give it a list of characters and it trims them. You're giving it a whole word, but it only sees individual letters. So if there's an i in your trigger, it trims all i's, etc.<br><br>You're probably better off using regsub.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Sep 02, 2002 6:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-02T18:08:26-04:00</updated>

		<published>2002-09-02T18:08:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10359#p10359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10359#p10359"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10359#p10359"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set text [string trimleft $text "$trigger "]</code></pre></div>This code seems to make trubble...<br><br>If $text is "$trigger ic is fun"<br>Then it not only strips down the "$trigger " but also the i in "ic"<br><br>Is this the same problem?<p>Statistics: Posted by Guest — Mon Sep 02, 2002 6:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-02T17:54:48-04:00</updated>

		<published>2002-09-02T17:54:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10358#p10358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10358#p10358"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10358#p10358"><![CDATA[
Thank you, I'll try that...  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Mon Sep 02, 2002 5:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-02T17:49:35-04:00</updated>

		<published>2002-09-02T17:49:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10357#p10357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10357#p10357"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10357#p10357"><![CDATA[
No list functions don't suck. But they are not designed to operate on strings. A word in a string does not equal an element in a list.<br><br>Split takes a string and turns it into a list, based on spaces. So after split, each word is an element in a list.<br><br>So to use lindex and split together, simply say:<br><br>lindex [split $text] 1<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Sep 02, 2002 5:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-09-02T17:25:28-04:00</updated>

		<published>2002-09-02T17:25:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10356#p10356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10356#p10356"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10356#p10356"><![CDATA[
Nice, thanks... so list functions suck?<br><br>how do I make split work like lindex?<p>Statistics: Posted by Guest — Mon Sep 02, 2002 5:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-02T17:16:41-04:00</updated>

		<published>2002-09-02T17:16:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10354#p10354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10354#p10354"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10354#p10354"><![CDATA[
Your regsub is a temporary solution. It could break again when you modify the script. PPslim was right in saying that it is due to bad handling of the string.<br><br>You are probably saying [lindex $text 1] or something. To correct this code, use [split] on $text, not regsub.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Sep 02, 2002 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T17:41:43-04:00</updated>

		<published>2002-08-28T17:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10157#p10157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10157#p10157"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10157#p10157"><![CDATA[
I think I fixed the problem with <div class="codebox"><p>Code: </p><pre><code>regsub -all "\\\\" $text "" text</code></pre></div>It works now anyway, are there any tcl functions used for escaping, and unescaping? besides subst? because subst only escapes?<p>Statistics: Posted by Guest — Wed Aug 28, 2002 5:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-28T17:19:35-04:00</updated>

		<published>2002-08-28T17:19:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10150#p10150</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10150#p10150"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10150#p10150"><![CDATA[
This is not due to a character being un-escaped<br><br>It is likely to have allready been excaped, yet due to bad handling of strings (using list commands), it is processed wrong.<br><br>If you post the script, we can pinpoint the problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Aug 28, 2002 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-28T13:03:37-04:00</updated>

		<published>2002-08-28T13:03:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10139#p10139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10139#p10139"/>
		<title type="html"><![CDATA[unmatched open quote in list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10139#p10139"><![CDATA[
I get this error "unmatched open quote in list"<br>I guess it's because I need to escape something in my string... so I was wondering if there was a way to escape a string and unescape it... some functions?<p>Statistics: Posted by Guest — Wed Aug 28, 2002 1:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
