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

	<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>2004-02-06T11:49:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-02-06T11:49:31-04:00</updated>

		<published>2004-02-06T11:49:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33292#p33292</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33292#p33292"/>
		<title type="html"><![CDATA[editing strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33292#p33292"><![CDATA[
how about<div class="codebox"><p>Code: </p><pre><code>join [lrange [split &lt;string&gt;] 0 end-1]</code></pre></div>lol, it feels strange not being able to join the forum for 2 weeks or so and then come back for 5 mins just to take a look, as if all the experiance faded <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Feb 06, 2004 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-02-04T12:09:45-04:00</updated>

		<published>2004-02-04T12:09:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33207#p33207</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33207#p33207"/>
		<title type="html"><![CDATA[editing strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33207#p33207"><![CDATA[
You can use list commands if you are carefull with what you do. Using lindex directly on a string is just BAD. It freaks out with ; {} [] and can lead to security problems.<br><br>It can be solved with<br><div class="codebox"><p>Code: </p><pre><code>set tokens [split $mystring " "]</code></pre></div>now you can use both <strong class="text-strong">lindex</strong> and <strong class="text-strong">lrange</strong> safely.<br><br>lindex $tokens <span style="text-decoration:underline">N</span><br>returns word N (starting count from 0)<br>lrange $tokens <span style="text-decoration:underline">start index</span> <span style="text-decoration:underline">end index</span><br>...<br><br>Nice and clean <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by Guest — Wed Feb 04, 2004 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-02-04T11:35:15-04:00</updated>

		<published>2004-02-04T11:35:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33206#p33206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33206#p33206"/>
		<title type="html"><![CDATA[editing strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33206#p33206"><![CDATA[
beeeeep!!!<br>you should NOT use list-commands on strings <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=852">Papillon</a> — Wed Feb 04, 2004 11:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2004-02-04T10:58:49-04:00</updated>

		<published>2004-02-04T10:58:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33203#p33203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33203#p33203"/>
		<title type="html"><![CDATA[editing strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33203#p33203"><![CDATA[
you can use lrange, for exampe <div class="codebox"><p>Code: </p><pre><code>lrange &lt;string&gt; 0 end-1</code></pre></div>this will return the whole string except the last word.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Feb 04, 2004 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sirkrunch]]></name></author>
		<updated>2004-02-03T17:38:11-04:00</updated>

		<published>2004-02-03T17:38:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=33189#p33189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=33189#p33189"/>
		<title type="html"><![CDATA[editing strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=33189#p33189"><![CDATA[
Hi,<br>i have a script that gets information from a file, but I dont want to display the last word, how can i go about cutting that last word out?<br><br>like mIRC could use the $gettok() using chr 32 (space) as the ident chr<br>there is only 2 spaces and its the last on that i want to remove, any help would be good <br><br>cheers<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2010">sirkrunch</a> — Tue Feb 03, 2004 5:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
