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

	<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>2005-11-09T01:12:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-09T01:12:40-04:00</updated>

		<published>2005-11-09T01:12:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57197#p57197</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57197#p57197"/>
		<title type="html"><![CDATA[regular expression? or similar function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57197#p57197"><![CDATA[
this is an excerpt from <a href="http://demond.net/rssnews.tcl" class="postlink">rssnews.tcl</a>, showing how to extract text between tags:<div class="codebox"><p>Code: </p><pre><code>regexp {(?i)&lt;title.*?&gt;(.*?)&lt;/title&gt;}  $item -&gt; titleregexp {(?i)&lt;link.*?&gt;(.*?)&lt;/link}     $item -&gt; linkregexp {(?i)&lt;desc.*?&gt;(.*?)&lt;/desc.*?&gt;} $item -&gt; descr</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Nov 09, 2005 1:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-08T14:48:35-04:00</updated>

		<published>2005-11-08T14:48:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57189#p57189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57189#p57189"/>
		<title type="html"><![CDATA[regular expression? or similar function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57189#p57189"><![CDATA[
Check tutorial for parasin web pages <a href="http://forum.egghelp.org/viewtopic.php?t=9972" class="postlink">here</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Tue Nov 08, 2005 2:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2005-11-08T09:14:18-04:00</updated>

		<published>2005-11-08T09:14:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57183#p57183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57183#p57183"/>
		<title type="html"><![CDATA[regular expression? or similar function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57183#p57183"><![CDATA[
<a href="http://www.tcl.tk/man/tcl8.4/TclCmd/regexp.htm" class="postlink">regexp manual page</a><br><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/regsub.htm" class="postlink">regsub manual page</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Tue Nov 08, 2005 9:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ache]]></name></author>
		<updated>2005-11-08T07:22:04-04:00</updated>

		<published>2005-11-08T07:22:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57180#p57180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57180#p57180"/>
		<title type="html"><![CDATA[regular expression? or similar function]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57180#p57180"><![CDATA[
Hello again.<br>I need some help with getting some text from a string.<br>Don´t know if regexp´s is the way to do it, anyways.<br>I have this line:<div class="codebox"><p>Code: </p><pre><code>caching and translation of results, and an option to find similar pages.&lt;br&gt;&lt;font color=#008000&gt;www.&lt;b&gt;google&lt;/b&gt;.com/ -  3k -  7 nov 2005 - &lt;/font&gt;&lt;nobr&gt;  &lt;a class=fl href="http://72.14.207.104/search?q=cache:zhool8dxBV4J:www.google.com/+google&amp;hl=sv"&gt;Cachad&lt;/a&gt; - &lt;a class=fl href="/search?hl=sv&amp;lr=&amp;q=related:www.google.com/"&gt;Liknande sidor&lt;/a&gt;&lt;/nobr&gt;&lt;/font&gt; &lt;blockquote class=g&gt;&lt;p class=g&gt;&lt;a href="http://www.google.com/search"&gt;www.google.com/search&lt;/a&gt;&lt;br&gt;&lt;font size=-1&gt;&lt;s</code></pre></div>what i want is to get these two things from the string into some varialbles:<div class="codebox"><p>Code: </p><pre><code>$desccaching and translation of results, and an option to find similar pages.$urlwww.google.com</code></pre></div>As you might guess i´m working on a google search script and i only want the description of the page and the actual url so i figure that i only need to go through this line:<div class="codebox"><p>Code: </p><pre><code>caching and translation of results, and an option to find similar pages.&lt;br&gt;&lt;font color=#008000&gt;www.&lt;b&gt;google&lt;/b&gt;.com/ -  3k -  7 nov 2005 - &lt;/font&gt;</code></pre></div>I thought of matching everything before the &lt;BR&gt; tag and place it in $desc<br>and to get all text between &lt;font color=#008000&gt; and &lt;/font&gt; into $url then remove the &lt;b&gt;and &lt;/b&gt; tags.<br>problem is i don´t know anything about regular expressions so i have no idea on how to get on with this.<br><br>any help is much appriciated.<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6853">ache</a> — Tue Nov 08, 2005 7:22 am</p><hr />
]]></content>
	</entry>
	</feed>
