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

	<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-26T06:25:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-03-26T06:25:21-04:00</updated>

		<published>2004-03-26T06:25:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34956#p34956</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34956#p34956"/>
		<title type="html"><![CDATA[I've said this before...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34956#p34956"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026} $text {} text</code></pre></div></div></blockquote>That's not the right way to match colors. It would match things like "\003," "\003,99" "\00366," where "," and "99" are not part of the color "tag". Try this instead:<div class="codebox"><p>Code: </p><pre><code>regsub -all {\002|\003([0-9]{1,2}(,[0-9]{1,2})?)?|\017|\026|\037} $text {} text</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Mar 26, 2004 6:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jag]]></name></author>
		<updated>2004-03-22T11:25:04-04:00</updated>

		<published>2004-03-22T11:25:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34854#p34854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34854#p34854"/>
		<title type="html"><![CDATA[lreplace question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34854#p34854"><![CDATA[
Thank you all <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=3871">Jag</a> — Mon Mar 22, 2004 11:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-03-22T10:56:58-04:00</updated>

		<published>2004-03-22T10:56:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34852#p34852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34852#p34852"/>
		<title type="html"><![CDATA[lreplace question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34852#p34852"><![CDATA[
or another version:<div class="codebox"><p>Code: </p><pre><code>set code "1.2.3.4"set code [join [split $code .] *]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Mon Mar 22, 2004 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-03-22T09:14:59-04:00</updated>

		<published>2004-03-22T09:14:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34851#p34851</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34851#p34851"/>
		<title type="html"><![CDATA[lreplace question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34851#p34851"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc stripcolors { text } {regsub -all -- {\003[0-9]{0,2}(,[0-9]{0,2})?|\017|\037|\002|\026} $text {} textreturn $text}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Mon Mar 22, 2004 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jag]]></name></author>
		<updated>2004-03-22T08:28:43-04:00</updated>

		<published>2004-03-22T08:28:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34850#p34850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34850#p34850"/>
		<title type="html"><![CDATA[lreplace question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34850#p34850"><![CDATA[
Thanks, it works! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>last question, how can i regsub all the colors/bolds/italics (\003,\002\037) from line?<br><br>Thanks again <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=3871">Jag</a> — Mon Mar 22, 2004 8:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rusher2K]]></name></author>
		<updated>2004-03-21T15:10:34-04:00</updated>

		<published>2004-03-21T15:10:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34835#p34835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34835#p34835"/>
		<title type="html"><![CDATA[lreplace question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34835#p34835"><![CDATA[
You can use that :<div class="codebox"><p>Code: </p><pre><code>set code "1.2.3.4"set code [string map {. *} 1.2.3.4.5] ; return $codethat returns : 2 - result: 1*2*3*4*5 - clicks: 109</code></pre></div>Or that :<div class="codebox"><p>Code: </p><pre><code>set code "1.2.3.4"regsub -all -- {\.} $code * code ; return $codethat returns : 2 - result: 1*2*3*4*5 - clicks: 416</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3034">Rusher2K</a> — Sun Mar 21, 2004 3:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Jag]]></name></author>
		<updated>2004-03-21T14:32:09-04:00</updated>

		<published>2004-03-21T14:32:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34830#p34830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34830#p34830"/>
		<title type="html"><![CDATA[lreplace question]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34830#p34830"><![CDATA[
I have the line:<blockquote class="uncited"><div>1.2.3.4</div></blockquote>How can i replace these lines to be:<blockquote class="uncited"><div>1*2*3*3</div></blockquote>With the [lreplace] command?<br><br>I have read the manual of this command, but i didn't understand.<br>Hope that you'll help me, thanks <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=3871">Jag</a> — Sun Mar 21, 2004 2:32 pm</p><hr />
]]></content>
	</entry>
	</feed>
