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

	<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-26T07:46:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-26T07:46:17-04:00</updated>

		<published>2003-05-26T07:46:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20691#p20691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20691#p20691"/>
		<title type="html"><![CDATA[Grap text and put in topic script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20691#p20691"><![CDATA[
Regexp in tcl doesn't stuff the match(es) into an array like php does. You have to supply a variable name for each part of the rule marked for reporting.<br><br><a href="http://forum.egghelp.org/viewtopic.php?t=4319" class="postlink">http://forum.egghelp.org/viewtopic.php?t=4319</a><br><a href="http://www.tcl.tk/man/tcl8.3/TclCmd/regexp.htm" class="postlink">http://www.tcl.tk/man/tcl8.3/TclCmd/regexp.htm</a><br><a href="http://www.tcl.tk/man/tcl8.3/TclCmd/re_syntax.htm" class="postlink">http://www.tcl.tk/man/tcl8.3/TclCmd/re_syntax.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon May 26, 2003 7:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-26T07:42:08-04:00</updated>

		<published>2003-05-26T07:42:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20690#p20690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20690#p20690"/>
		<title type="html"><![CDATA[Grap text and put in topic script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20690#p20690"><![CDATA[
the php file is only accessable via http... therefore i thought an pure tcl solution var easier ?<p>Statistics: Posted by Guest — Mon May 26, 2003 7:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-05-26T07:42:10-04:00</updated>

		<published>2003-05-26T07:39:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20689#p20689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20689#p20689"/>
		<title type="html"><![CDATA[Grap text and put in topic script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20689#p20689"><![CDATA[
Use the http package (tcl manuals at <a href="http://tcl.tk/man/" class="postlink">http://tcl.tk/man/</a> ) to grab the file, then supply your regexp with a rule that will match the content on the page. <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> — Mon May 26, 2003 7:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-05-26T07:31:01-04:00</updated>

		<published>2003-05-26T07:31:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=20688#p20688</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=20688#p20688"/>
		<title type="html"><![CDATA[Grap text and put in topic script help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=20688#p20688"><![CDATA[
Hi<br><br>I'm pretty new in script tcl/tcl for eggdrop and I'm trying to make an script which either graps the text written on this page:<br><br><a href="http://www.cstv.dk/ccdrift/" class="postlink">http://www.cstv.dk/ccdrift/</a><br><br>Or the tcl script graps the text it self...<br><br>Url to grap from: <a href="http://www.cybercity.dk/privat/kundeservice/index.phtml" class="postlink">http://www.cybercity.dk/privat/kundeservice/index.phtml</a><br><br>my php ereg code which proberly could be optimized and don't work with tcl ?<br><div class="codebox"><p>Code: </p><pre><code>ereg("&lt;p&gt;&lt;b&gt;Sidste åbne fejl:&lt;/b&gt;&lt;hr size=1 noshade color=\"#49735D\"&gt;(.*)&lt;p&gt;\n&lt;hr size=1&gt;\n&lt;b&gt;Sidste 5 lukkede fejl:&lt;/b&gt;&lt;hr size=1&gt;", $search, $report); </code></pre></div>Could i port this to:<br><div class="codebox"><p>Code: </p><pre><code>regexp {^.*("&lt;p&gt;&lt;b&gt;Sidste åbne fejl:&lt;/b&gt;&lt;hr size=1 noshade color=\"#49735D\"&gt;(.*)&lt;p&gt;\n&lt;hr size=1&gt;\n&lt;b&gt;Sidste 5 lukkede fejl:&lt;/b&gt;&lt;hr size=1&gt;} $search $report</code></pre></div>I would like the script to set topic in an chan with the text graped and check it every 5 or 10 min if changed....<br><br><br>what useless(?) code I have:<br><div class="codebox"><p>Code: </p><pre><code>proc ccdrift {putserv "TOPIC $chan :$report"}</code></pre></div><br><span style="font-size:150%;line-height:116%">Please someboddy help me or give me some hints......   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"></span><p>Statistics: Posted by Guest — Mon May 26, 2003 7:31 am</p><hr />
]]></content>
	</entry>
	</feed>
