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

	<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-05-16T09:11:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-05-16T09:11:17-04:00</updated>

		<published>2003-05-16T09:11:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20275#p20275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20275#p20275"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20275#p20275"><![CDATA[
oops.. never mind <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=852">Papillon</a> — Fri May 16, 2003 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-16T07:02:40-04:00</updated>

		<published>2003-05-16T07:02:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20262#p20262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20262#p20262"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20262#p20262"><![CDATA[
Wanted to count how many { and } are in a file and compare them in the end.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri May 16, 2003 7:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-16T06:53:48-04:00</updated>

		<published>2003-05-16T06:53:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20258#p20258</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20258#p20258"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20258#p20258"><![CDATA[
I asked what you're using it for since you might have an interest in NOT matching escaped braces in your file.<br><br>As for your question...what do you mean?<br>I'll answer what i think your question was about...if you wanted to match "{0" the { would have to be double escaped.<br><blockquote class="uncited"><div>Tclsh test:<br>% regexp \\{0 \{0<br>1<br>% regexp \{0 \{0<br>couldn't compile regular expression pattern: quantifier operand invalid</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri May 16, 2003 6:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-16T06:48:16-04:00</updated>

		<published>2003-05-16T06:48:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20257#p20257</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20257#p20257"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20257#p20257"><![CDATA[
For my personal knowlege. I want to know if I've missed one or something like this. Dosen't matter for what I've use it, stdragon gave me the best solution and all I would like to know now it's the thing I've asked a few moments ago.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri May 16, 2003 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-16T06:45:48-04:00</updated>

		<published>2003-05-16T06:45:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20256#p20256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20256#p20256"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20256#p20256"><![CDATA[
Who? What?<br><br>btw: what is the purpose of counting the braces?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri May 16, 2003 6:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-16T06:37:15-04:00</updated>

		<published>2003-05-16T06:37:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20253#p20253</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20253#p20253"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20253#p20253"><![CDATA[
Please give me an example of the matches you've mentioned earlier. I'm asking this to understand things better not to bitch around. Thank you.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri May 16, 2003 6:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-16T06:31:34-04:00</updated>

		<published>2003-05-16T06:31:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20252#p20252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20252#p20252"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20252#p20252"><![CDATA[
{ when followed by a character other than a digit, matches the left-brace character `{'; when followed by a digit, it is the beginning of a bound.<br>So double escaping it is only needed when you're looking for a { followed by a number.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri May 16, 2003 6:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-16T05:53:43-04:00</updated>

		<published>2003-05-16T05:53:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20243#p20243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20243#p20243"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20243#p20243"><![CDATA[
I don't want to bitching around, but I've test the thing you've said about the \'s and actualy the regexp worked with one \ like this: \{.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri May 16, 2003 5:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-15T04:09:41-04:00</updated>

		<published>2003-05-15T04:09:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20204#p20204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20204#p20204"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20204#p20204"><![CDATA[
Yes, you are right, as usualy. Thank you for explaining this.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu May 15, 2003 4:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-05-14T05:29:32-04:00</updated>

		<published>2003-05-14T05:29:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20186#p20186</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20186#p20186"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20186#p20186"><![CDATA[
There is some magic here, that you should understand.<br><br>In Tcl, you may need to escape certain characters. EG, you can use \003, \{, \[<br><br>However, what if you want to place the backslash (\) into your text, and not have it interpret it as escaping the next character. You use \\.<br><br>Tcl isn't the only language that uses escape sequences. Infact, Regular Expressions are a language in themselves, and they also have escape sequences.<br><br>So if you need to send a escape { to regexp, you can't send \{, as Tcl will capture it, and sort the \ before it makes it to regexp. Thus, using \\{ in Tcl, sends \{ to the regexp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed May 14, 2003 5:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-14T02:34:38-04:00</updated>

		<published>2003-05-14T02:34:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20183#p20183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20183#p20183"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20183#p20183"><![CDATA[
Ahh.. duno why sometimes I choose the hard way on doing things. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Silly me forgot about the 'regexp'.. pff. Thank you.<br><br>PS: As far as I remember don't think there is a need of two \ in front of the { and no need (humm..) of then in front of the }. Not shure 100% about this anyway. I chould be wrong or something.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed May 14, 2003 2:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-05-13T02:41:20-04:00</updated>

		<published>2003-05-13T02:41:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20150#p20150</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20150#p20150"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20150#p20150"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set fp [open sheep/baa.txt r]set data [read $fp]close $fpset openbraces [regexp -all "\\{" $data]set closebraces [regexp -all "\\}" $data]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue May 13, 2003 2:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-13T01:18:23-04:00</updated>

		<published>2003-05-13T01:18:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20143#p20143</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20143#p20143"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20143#p20143"><![CDATA[
I would like to read all the { and } from a file and tell the result.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue May 13, 2003 1:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-12T04:07:33-04:00</updated>

		<published>2003-05-12T04:07:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20089#p20089</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20089#p20089"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20089#p20089"><![CDATA[
I'm talking about the while loop...it'll only be executed once, so you might aswell do if {![eof]} {..}<br>In your foreach you loop through the list of lines created with [split [read $file] "\n"], so the ONE line of code you used for testing should still result in 1 and 1.<br><br>What exactly are you trying to do?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 12, 2003 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-05-12T03:52:40-04:00</updated>

		<published>2003-05-12T03:52:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20088#p20088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20088#p20088"/>
		<title type="html"><![CDATA[brackets]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20088#p20088"><![CDATA[
About what "looping" are you talking about? As far as I can see I'm reading all the lines of the file the split them in to pices with the foreach thing. At least this should happen. I have also tryed to split again the result to make the match more eficient but screwed it somehwere.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 12, 2003 3:52 am</p><hr />
]]></content>
	</entry>
	</feed>
