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

	<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-08-16T10:08:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2005-08-16T10:08:17-04:00</updated>

		<published>2005-08-16T10:08:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54342#p54342</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54342#p54342"/>
		<title type="html"><![CDATA[another regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54342#p54342"><![CDATA[
ah alright, thanks for your help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Aug 16, 2005 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-08-16T09:51:06-04:00</updated>

		<published>2005-08-16T09:51:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54340#p54340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54340#p54340"/>
		<title type="html"><![CDATA[another regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54340#p54340"><![CDATA[
There's nothing wrong with your regexp, you just missed the 2nd var at the end. <br>Regexp writes the entire matching pattern to the first var.<br><br>So this should work:<div class="codebox"><p>Code: </p><pre><code>regexp {\.html\?witem=([0-9]*?)\&gt;} $text garbage result</code></pre></div>You dont have to make it this complex, though. You could probably have gotten away with doing something like this: <div class="codebox"><p>Code: </p><pre><code>regexp {witem=(.*?)&gt;} $text . digit</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Tue Aug 16, 2005 9:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2005-08-16T09:34:09-04:00</updated>

		<published>2005-08-16T09:34:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54338#p54338</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54338#p54338"/>
		<title type="html"><![CDATA[another regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54338#p54338"><![CDATA[
ah thanks a lot!<br><br>but I'm interested, what was wrong with my regexp?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Aug 16, 2005 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2005-08-16T09:15:32-04:00</updated>

		<published>2005-08-16T09:15:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54336#p54336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54336#p54336"/>
		<title type="html"><![CDATA[another regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54336#p54336"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>scan $text "&lt;a href=/item.html?witem=%d&gt;*&lt;/a&gt;" digit</code></pre></div>647 is stored in $digit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Tue Aug 16, 2005 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eiSi]]></name></author>
		<updated>2005-08-16T06:56:27-04:00</updated>

		<published>2005-08-16T06:56:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=54331#p54331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=54331#p54331"/>
		<title type="html"><![CDATA[another regexp problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=54331#p54331"><![CDATA[
hi there!<br><br>I started to concern myself with regexp now, and I already have a problem:<br><br>the string ($text):<div class="codebox"><p>Code: </p><pre><code>&lt;a href=/item.html?witem=647&gt;Destiny&lt;/a&gt;</code></pre></div>my code:<div class="codebox"><p>Code: </p><pre><code>regexp {\.html\?witem=([0-9]*?)\&gt;} $text result</code></pre></div>I know there's anything wrong with it, but I don't know what.<br><br>the match I get is: .html?witem=647&gt;<br>but I want to get: 647<br><br>thanks for any help!<br><br>regards,<br>eiSi<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=939">eiSi</a> — Tue Aug 16, 2005 6:56 am</p><hr />
]]></content>
	</entry>
	</feed>
