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

	<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>2003-03-12T03:54:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-12T03:54:11-04:00</updated>

		<published>2003-03-12T03:54:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17760#p17760</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17760#p17760"/>
		<title type="html"><![CDATA[regexp...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17760#p17760"><![CDATA[
since you asked about regexp... I tested a littlebit and came up with this cute line... hehe<br>it will just split if the var follows the "characters[num:num:num]" pattern<div class="codebox"><p>Code: </p><pre><code>set test "blsBLSBbsuaBYY[343:43:4]"regexp {([a-z A-Z]*)(\[([0-9]+:)+[0-9]+\])} $test var1 var2 var3var2 = blsBLSBbsuaBYYvar3 = [343:43:4]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Mar 12, 2003 3:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-03-12T01:47:18-04:00</updated>

		<published>2003-03-12T01:47:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17757#p17757</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17757#p17757"/>
		<title type="html"><![CDATA[regexp...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17757#p17757"><![CDATA[
set test {HTP[1:2:3]}<br>foreach {part1 part2} [split $test {[}] {}<br><br><br>part1 = HTP<br>part2 = 1:2:3]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Mar 12, 2003 1:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-03-11T22:15:58-04:00</updated>

		<published>2003-03-11T22:15:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17752#p17752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17752#p17752"/>
		<title type="html"><![CDATA[regexp...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17752#p17752"><![CDATA[
Well, the string is not static, so I have to check, that i split between the chars and the [ bracket...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Tue Mar 11, 2003 10:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-03-11T14:08:28-04:00</updated>

		<published>2003-03-11T14:08:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17734#p17734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17734#p17734"/>
		<title type="html"><![CDATA[regexp...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17734#p17734"><![CDATA[
mmm I'm not to good with regexp... but something like this?<div class="codebox"><p>Code: </p><pre><code>set test "HTP[1:2:3]"regexp {(HTP)(\[1:2:3\])} $test var1 var2 var3var1 = HTP[1:2:3]var2 = HTPvar3 = [1:2:3]</code></pre></div>don't kill me if this is wrong <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> — Tue Mar 11, 2003 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2003-03-11T13:08:34-04:00</updated>

		<published>2003-03-11T13:08:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=17727#p17727</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=17727#p17727"/>
		<title type="html"><![CDATA[regexp...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=17727#p17727"><![CDATA[
Hi, I have a string that contains a word like "HTP[1:2:3]". Is it possible to split the word to "HTP" and "[1:2:3]" with regexp? Or is it just possible to split the string with other commands? Would be nice for some support <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Greetings,<br>ProXy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Tue Mar 11, 2003 1:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
