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

	<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-07-09T13:30:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2007-07-09T13:30:32-04:00</updated>

		<published>2007-07-09T13:30:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74294#p74294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74294#p74294"/>
		<title type="html"><![CDATA[regexp - Help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74294#p74294"><![CDATA[
If you're trying to capture the hostname, you need something like:<br><br>regexp -nocase -- {\[hostname\] \=\&gt; (.*?)\n} $html fullmatchvar hostname <br><br>You need to escape the = and &gt;, you need to use () around the portion you want to capture into a var, and you need to use a "fullmatchvar" and "specific-match-var" (eg, hostname)..  I assumed you wanted the entire string after =&gt; and so I used a newline \n to delimit the end point.<br><br>Check the manpage for re_syntax and regexp that comes with tcl for more details.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Mon Jul 09, 2007 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Wannabe]]></name></author>
		<updated>2007-07-09T09:32:52-04:00</updated>

		<published>2007-07-09T09:32:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74287#p74287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74287#p74287"/>
		<title type="html"><![CDATA[regexp - Help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74287#p74287"><![CDATA[
Hey guys, im having problems with my regexp, it should technically work, but it refuses to, so ill give you what i have and see if anyone can spot my mistake/s for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>Cheers<br><br>Current code : regexp -nocase -- {\[hostname\] =&gt; .+} $html hostname<br><br>Code im trying to parse <br><div class="codebox"><p>Code: </p><pre><code>     &lt;pre&gt;Array(    [nsserver] =&gt; Array        (            [address] =&gt; 194.154.191.10:27015            [hostname] =&gt; Wireplay UK NS [Classictastic][NS + FF on]            [map] =&gt; ns_caged            [gamedir] =&gt; ns            [gamename] =&gt; NS v3.2.0            [num_players] =&gt; 2            [max_players] =&gt; 16            [protocol] =&gt; 47            [server_type] =&gt; d            [server_os] =&gt; l            [password] =&gt; 0            [mod] =&gt; 1            [mod_info] =&gt; http://www.unknownworlds.com/ns/            [mod_download] =&gt; http://www.unknownworlds.com/ns/view?action=files            [mod_version] =&gt; 0            [mod_size] =&gt; -709672960            [mod_ssonly] =&gt; 9            [mod_customdll] =&gt; 0        ))&lt;/pre&gt;</code></pre></div>[/code]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7360">Wannabe</a> — Mon Jul 09, 2007 9:32 am</p><hr />
]]></content>
	</entry>
	</feed>
