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

	<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-09-07T22:02:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-07T22:02:59-04:00</updated>

		<published>2004-09-07T22:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40695#p40695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40695#p40695"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40695#p40695"><![CDATA[
I am not that good myself with regular expressions, but you are not using the correct syntax of regexp even. You forgot to mention the variable to match with even, so I will assume it to be $text.<br><br>As for that tcl error escape the [0-9] square brackets. That is what the error is about. As for the matching bit, I am not sure because I don't have the output which you are trying to match.<br><br>Replace:<div class="codebox"><p>Code: </p><pre><code>   if regex ^Total:\s([0-9]+)\s\(owner:\s([0-9]+),\smaster:\s([0-9]+),\sop:\s([0-9]+),\svoice:\s([0-9]+),\sban:\s([0-9]+)\)\.$} </code></pre></div>With:<div class="codebox"><p>Code: </p><pre><code>   if {[regexp -- {^Total:\s(\[0-9\]+)\s\(owner:\s(\[0-9\]+),\smaster:\s(\[0-9\]+),\sop:\s(\[0-9\]+),\svoice:\s(\[0-9\]+),\sban:\s(\[0-9\]+)\)\.$} $text]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Sep 07, 2004 10:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-09-07T02:23:25-04:00</updated>

		<published>2004-09-07T02:23:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40669#p40669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40669#p40669"/>
		<title type="html"><![CDATA[regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40669#p40669"><![CDATA[
Now, im pretty lousy with regexp, but i tried to use this code so it pms the channel service with chanlev &lt;channel&gt; and it retrieves the things, now its not quite complete but the regexp i made doesnt seem to work<br><div class="codebox"><p>Code: </p><pre><code>bind pub o|o \$chanlev pub:chanlevcheckproc pub:chanlevcheck { nick host hand chan text } {  set ::chanlev(chan) "$chan"  bind notc - * notc:chanlev  putserv "PRIVMSG $chan :\002\273\002 Checking $chan's chanlev"  putserv "PRIVMSG [cserve $chan] :CHANLEV $chan"}proc notc:chanlev {nick host hand text [censored]} {  set chan $::chanlev(chan)  set from "$nick!$host"  if {[string match -nocase "Q!TheQBot@CServe.quakenet.org" $from]} {if regex ^Total:\s([0-9]+)\s\(owner:\s([0-9]+),\smaster:\s([0-9]+),\sop:\s([0-9]+),\svoice:\s([0-9]+),\sban:\s([0-9]+)\)\.$}# I have no clue how to use it :|      putserv "PRIVMSG $chan :\002\273\002 Unknown channel Blah!"      unbind notc - * notc:chanlev      return    }proc cserve {chan} {if {[onchan Q $chan]} {return "Q"} elseif {[onchan L $chan]} {return "L"} else {return ""}}</code></pre></div>Now again, i have no clue how to use it, so it looks like crap <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>This is the error on the partyline<br><div class="codebox"><p>Code: </p><pre><code>[08:18] Tcl error [notc:chanlev]: invalid command name "0-9"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Tue Sep 07, 2004 2:23 am</p><hr />
]]></content>
	</entry>
	</feed>
