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

	<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-08-13T08:05:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-13T08:05:26-04:00</updated>

		<published>2003-08-13T08:05:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24843#p24843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24843#p24843"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24843#p24843"><![CDATA[
Thanks for all the Help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Aug 13, 2003 8:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-13T07:58:19-04:00</updated>

		<published>2003-08-13T07:58:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24842#p24842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24842#p24842"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24842#p24842"><![CDATA[
Umm.. if you are carefully then there should not be a problem, but basicaly yes, is nice to *escape* them..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Aug 13, 2003 7:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T07:42:58-04:00</updated>

		<published>2003-08-13T07:42:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24840#p24840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24840#p24840"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24840#p24840"><![CDATA[
<blockquote class="uncited"><div>Only the [ must be .. umm.. forgot the word <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> basicaly it should be \[]</div></blockquote>Yes, but escaping the "]" doesn't hurt and will prevent confusing behaviour if you have an unterminated "[" some place before the unescaped "]"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 13, 2003 7:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-13T07:40:01-04:00</updated>

		<published>2003-08-13T07:40:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24838#p24838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24838#p24838"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24838#p24838"><![CDATA[
Only the [ must be .. umm.. forgot the word <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> basicaly it should be \[]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Aug 13, 2003 7:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T07:36:58-04:00</updated>

		<published>2003-08-13T07:36:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24836#p24836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24836#p24836"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24836#p24836"><![CDATA[
\[\]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 13, 2003 7:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-13T07:00:47-04:00</updated>

		<published>2003-08-13T07:00:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24835#p24835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24835#p24835"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24835#p24835"><![CDATA[
works great, thanks.<br><br>1 more question<br><br>how can i get " [ ] " into a channel msg?<br><div class="codebox"><p>Code: </p><pre><code>puthelp "PRIVMSG $chan :[exp/too many codes]"puthelp "PRIVMSG $chan :{[exp/too many codes]}"puthelp "PRIVMSG $chan :"[exp/too many codes]""</code></pre></div>all 3 do not work<br><br>[06:51] Tcl error [protect:channel]: invalid command name "exp/too"<br><br>[06:53] Tcl error [protect:channel]: extra characters after close-quote<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Aug 13, 2003 7:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T06:35:38-04:00</updated>

		<published>2003-08-13T06:35:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24834#p24834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24834#p24834"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24834#p24834"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set spaces(found) [regexp -all {" "} $text]</code></pre></div></div></blockquote>The quotes between the braces are taken litterally, so your rule would match quote-space-quote. Get rid of the quotes and it'll work just fine <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=2878">user</a> — Wed Aug 13, 2003 6:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-13T06:17:03-04:00</updated>

		<published>2003-08-13T06:17:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24832#p24832</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24832#p24832"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24832#p24832"><![CDATA[
how would i look for spaces?<br><br>i tried:<div class="codebox"><p>Code: </p><pre><code>  set spaces(found) [regexp -all {" "} $text]  puthelp "PRIVMSG $chan :spaces(found) is $spaces(found)"</code></pre></div>thanks for the "codes" help, it works like a charm<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Aug 13, 2003 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-13T06:10:11-04:00</updated>

		<published>2003-08-13T06:10:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24831#p24831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24831#p24831"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24831#p24831"><![CDATA[
Oups, yes, he only wants to count 'em <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=187">caesar</a> — Wed Aug 13, 2003 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T06:08:33-04:00</updated>

		<published>2003-08-13T06:08:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24830#p24830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24830#p24830"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24830#p24830"><![CDATA[
<blockquote class="uncited"><div>instead of \003 it should be <em class="text-italics">\003[0-9]{0,2}(,[0-9]{0,2})?</em> I think due the *variables* it has like: 2,4 or 2, etc. A simple test should reveal If I'm right or wrong.</div></blockquote>I don't think he cares what color's used <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=2878">user</a> — Wed Aug 13, 2003 6:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-08-13T06:02:06-04:00</updated>

		<published>2003-08-13T06:02:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24828#p24828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24828#p24828"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24828#p24828"><![CDATA[
instead of \003 it should be <em class="text-italics">\003[0-9]{0,2}(,[0-9]{0,2})?</em> I think due the *variables* it has like: 2,4 or 2, etc. A simple test should reveal If I'm right or wrong.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Aug 13, 2003 6:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-08-13T06:09:31-04:00</updated>

		<published>2003-08-13T05:57:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24827#p24827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24827#p24827"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24827#p24827"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regexp -all {\002|\003|\037} $text</code></pre></div> or <div class="codebox"><p>Code: </p><pre><code>regexp -all {[\002\003\037]} $text</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 13, 2003 5:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-08-13T05:54:46-04:00</updated>

		<published>2003-08-13T05:54:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24826#p24826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24826#p24826"/>
		<title type="html"><![CDATA[help with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24826#p24826"><![CDATA[
I have tried many different combinations, <br>but i can not find the right ones.<br><br>the snipplet is suppost to count the codes<br><div class="codebox"><p>Code: </p><pre><code>  set codes(found) [regexp -all {(002) (003) (037)} $text]</code></pre></div><br>thanks for any help given<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Aug 13, 2003 5:54 am</p><hr />
]]></content>
	</entry>
	</feed>
