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

	<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-03-31T22:44:08-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-31T22:44:08-04:00</updated>

		<published>2004-03-31T22:44:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35123#p35123</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35123#p35123"/>
		<title type="html"><![CDATA[Reformat a sentence.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35123#p35123"><![CDATA[
Is this something of what you are after?<div class="codebox"><p>Code: </p><pre><code>set text "abcadf word1 word2 word3 ::msg:: morewords moremorewords"regsub {[^ ]* ([^:]*) :[^ ]* (.*)} $text {\1 \2} text</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Mar 31, 2004 10:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-31T21:28:32-04:00</updated>

		<published>2004-03-31T21:28:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35122#p35122</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35122#p35122"/>
		<title type="html"><![CDATA[Reformat a sentence.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35122#p35122"><![CDATA[
honestly i don't have regexp fully covert could u plz just xplain think of me as stupid <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=3151">Ofloo</a> — Wed Mar 31, 2004 9:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-03-31T16:25:13-04:00</updated>

		<published>2004-03-31T16:25:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35119#p35119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35119#p35119"/>
		<title type="html"><![CDATA[Reformat a sentence.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35119#p35119"><![CDATA[
I want something like<div class="codebox"><p>Code: </p><pre><code>regexp (:$)+ $str tmp; set file [lrange $tmp 1 end]</code></pre></div>but I'm not sure if this is the best way.<br><br>(I don't know the usage of the regexp, so maybe the above to be wrong <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=2661">cerberus_gr</a> — Wed Mar 31, 2004 4:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-03-29T18:46:57-04:00</updated>

		<published>2004-03-29T18:46:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35057#p35057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35057#p35057"/>
		<title type="html"><![CDATA[Reformat a sentence.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35057#p35057"><![CDATA[
could be more specific i not realy sur what u mean do you wana create an array where u get<br><br>word(1) = ...<br>word(2) = ...<br><div class="codebox"><p>Code: </p><pre><code>foreach line $arg {  if {[info exists i]} {    incr i  } else {    set i 1  }  set word($i) "$line"}</code></pre></div>or do you want <br>the word before the last one<br>then do <br><div class="codebox"><p>Code: </p><pre><code>[lindex $arg end-1]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Mar 29, 2004 6:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-03-29T17:47:36-04:00</updated>

		<published>2004-03-29T17:47:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35055#p35055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35055#p35055"/>
		<title type="html"><![CDATA[Reformat a sentence.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35055#p35055"><![CDATA[
Hello,<br><br>I have this sentence<div class="codebox"><p>Code: </p><pre><code>abcdef word1 word2 word3 word4 ::msg:: word_lastorabcdsi word1 word2 ::msg:: word_last</code></pre></div>abcdef or abcdsi: are words which change<br>word1-4: words I want<br>::msg:: standard<br>word_last: in could be 1-15 words<br><br>I want to set to a variable only word1-*, like:<br>word1 word2 word3 word4<br>or<br>word1 word2<br><br>Any help?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Mon Mar 29, 2004 5:47 pm</p><hr />
]]></content>
	</entry>
	</feed>
