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

	<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-09-12T03:08:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-09-12T03:08:46-04:00</updated>

		<published>2003-09-12T03:08:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27002#p27002</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27002#p27002"/>
		<title type="html"><![CDATA[Re: Problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27002#p27002"><![CDATA[
<blockquote class="uncited"><div>if $line var is :<br>&lt;a href="/Sections/Genres/Sci-Fi/"&gt;Sci-Fi&lt;/a&gt; / &lt;a href="/Sections/Genres/Action/"&gt;Action&lt;/a&gt; / &lt;a<br>href="/Sections/Genres/Thriller/"&gt;Thriller&lt;/a&gt; &lt;a href="keywords"&gt;(more)&lt;/a&gt;<br><br>and i try to :<br>[regexp -- {(?s)^.+&gt;(.*)&lt;/a&gt;$} $line - gen]<br><br>if i print $gen , the result is : <br>(more)<br><br>How do i fix this , to have $gen = Sci-Fi Action Thriller<br><br>?<br><br>thx for the support  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"></div></blockquote>You'd be better off using regsub instead of regexp..<br><div class="codebox"><p>Code: </p><pre><code>regsub -all {(&lt;[^&gt;]*&gt;)} $line "" gen</code></pre></div>Should do the trick.. Of course, "(more)" will still be in it as well, but it shouldn't be hard for you to get rid of that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri Sep 12, 2003 3:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darkrad]]></name></author>
		<updated>2003-09-10T18:38:01-04:00</updated>

		<published>2003-09-10T18:38:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26919#p26919</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26919#p26919"/>
		<title type="html"><![CDATA[Problem with regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26919#p26919"><![CDATA[
if $line var is :<br>&lt;a href="/Sections/Genres/Sci-Fi/"&gt;Sci-Fi&lt;/a&gt; / &lt;a href="/Sections/Genres/Action/"&gt;Action&lt;/a&gt; / &lt;a<br>href="/Sections/Genres/Thriller/"&gt;Thriller&lt;/a&gt; &lt;a href="keywords"&gt;(more)&lt;/a&gt;<br><br>and i try to :<br>[regexp -- {(?s)^.+&gt;(.*)&lt;/a&gt;$} $line - gen]<br><br>if i print $gen , the result is : <br>(more)<br><br>How do i fix this , to have $gen = Sci-Fi Action Thriller<br><br>?<br><br>thx for the support  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3830">darkrad</a> — Wed Sep 10, 2003 6:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
