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

	<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>2007-06-15T06:40:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-06-15T06:40:35-04:00</updated>

		<published>2007-06-15T06:40:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73563#p73563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73563#p73563"/>
		<title type="html"><![CDATA[Site explorer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73563#p73563"><![CDATA[
You cant use variables within the regexp like that, although you can use a form like:<div class="codebox"><p>Code: </p><pre><code>set regexvar "h1&gt;$startstring(.*?)&lt;/h1&gt;.*?"regexp $regexvar $content fullcontent stringcontent </code></pre></div>That should work, assuming $startstring is actually defined (I don't see it defined in your code.) <br><br>Note also you made a mistake in using $fullcontent, $stringcontent, instead of just 'fullcontent, stringcontent' in your regexp and you also forgot to put in the $content var.<br><br>Actually, now that I look again, your code doesn't make much sense.. The stuff between () in the regexp, is what's going to be captured into $stringcontent. I'm assuming your $startstring is some other content you do *not* want to capture..<br><br>If you simply want to capture the entire content between &lt;h1&gt; &lt;/h1&gt; then use:<br><br>regexp {&lt;h1&gt;(.*?)&lt;/h1&gt;} $content fullcontent stringcontent<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Jun 15, 2007 6:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[retan]]></name></author>
		<updated>2007-06-14T23:26:30-04:00</updated>

		<published>2007-06-14T23:26:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73561#p73561</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73561#p73561"/>
		<title type="html"><![CDATA[Site explorer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73561#p73561"><![CDATA[
Hello I'm searching for a script, that searches a string on a webpage and posts it on my irc channel.<br><br>Example:<br><a href="http://www.test.com/test.html" class="postlink">www.test.com/test.html</a> looks like this:<blockquote class="uncited"><div>&lt;html&gt;<br>&lt;body&gt;<br>&lt;h1&gt;Animal Dog&lt;/h1&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</div></blockquote># How to output the string? (It has to be $startstring)<br>When I use $text, it doesnt work!<br><br>My Starting:<br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !searchstring searchprocproc searchproc {nick uhost hand chan text} {  set url "www.test.com/test.html"  set token [::http::geturl $url]  set content [::http::data $token]  ::http::cleanup $contentregexp {&lt;h1&gt;$startstring(.*?)&lt;/h1&gt;.*?} $fullcontent $stringcontentif {[info exists $startstring]} {putserv "PRIVMSG $chan : String not found"}else {putserv "PRIVMSG $chan : $stringcontent} }</code></pre></div>So, my problem is how to tell the script to give out the string_search_text.<br>How can I do that?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9056">retan</a> — Thu Jun 14, 2007 11:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
