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

	<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>2004-08-02T08:45:17-04:00</updated>

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

		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-08-02T08:45:17-04:00</updated>

		<published>2004-08-02T08:45:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39366#p39366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39366#p39366"/>
		<title type="html"><![CDATA[Regexp Problems...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39366#p39366"><![CDATA[
uhm have to read it again later cos i dont understand whats nex to that oO<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Mon Aug 02, 2004 8:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-01T20:52:51-04:00</updated>

		<published>2004-08-01T20:52:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39331#p39331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39331#p39331"/>
		<title type="html"><![CDATA[Regexp Problems...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39331#p39331"><![CDATA[
You didn't tell me enough about the format to be sure it'll work, but try this:<div class="codebox"><p>Code: </p><pre><code>set crap {4[Hot: .30/813/899 ]10 [Cold: .59/1471/1496 ] 15.999/999/999 [}if {[regexp {\[Hot:(.*?)\].*?\[Cold:(.*?)\]} $crap hot hot cold]} {set hots [regexp -all -inline {\.[0-9]+/[0-9]+/[0-9]+} $hot]set colds [regexp -all -inline {\.[0-9]+/[0-9]+/[0-9]+} $cold]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Aug 01, 2004 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[LexXx]]></name></author>
		<updated>2004-07-31T19:11:57-04:00</updated>

		<published>2004-07-31T19:11:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39293#p39293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39293#p39293"/>
		<title type="html"><![CDATA[Regexp Problems...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39293#p39293"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>regexp -nocase {.*\[hot: \.((\d)+)/((\d)+)/((\d)+).*} $topic a cipx(hotserver) b cipx(hotlwe) c cipx(hotact);regexp -nocase {.*\[cold: \.((\d)+)/((\d)+)/((\d)+) \.((\d)+)/((\d)+)/((\d)+).*} $topic a cipx(cold1server) b cipx(cold1lwe) c cipx(cold1act) d cipx(cold2server) e cipx(cold2lwe) f cipx(cold2act);</code></pre></div>This code works good when the topic is under a certain layout like this one:<div class="codebox"><p>Code: </p><pre><code>4[Hot: .30/813/899 ]10 [Cold: .59/1471/1496 ] 15.999/999/999 [ </code></pre></div>but not when there is only 1 pair of numbers under cold or 2 under hot...<br><br>my question ius how to make it more flexible, maybe that it detects how many ips there are etc. i dont know what's possible with regexp  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"> <br><br>ty for your help + mfg Lex<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5068">LexXx</a> — Sat Jul 31, 2004 7:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
