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

	<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-08-25T21:33:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-08-25T21:33:42-04:00</updated>

		<published>2003-08-25T21:33:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25673#p25673</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25673#p25673"/>
		<title type="html"><![CDATA[strip times]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25673#p25673"><![CDATA[
thanks . works like a charm ...<p>Statistics: Posted by Guest — Mon Aug 25, 2003 9:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-08-25T19:02:16-04:00</updated>

		<published>2003-08-25T19:02:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25653#p25653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25653#p25653"/>
		<title type="html"><![CDATA[strip times]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25653#p25653"><![CDATA[
<blockquote class="uncited"><div>You call those 3 things "samples", and each one has a different format. Are those all of the formats, or are there more? If those are it, it's really easy, just use regexp to get the text between "was here" and "ago", for instance.<br><div class="codebox"><p>Code: </p><pre><code>regexp {was here (.*) ago} $text match thetime# now $thetime is "1 hour and 3 seconds"</code></pre></div>Similar for "last seen" and "was online" too.</div></blockquote>Better:<div class="codebox"><p>Code: </p><pre><code>regexp { ([0-9].*)} $text garbage thetime</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Mon Aug 25, 2003 7:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-08-25T16:26:41-04:00</updated>

		<published>2003-08-25T16:26:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25647#p25647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25647#p25647"/>
		<title type="html"><![CDATA[strip times]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25647#p25647"><![CDATA[
You call those 3 things "samples", and each one has a different format. Are those all of the formats, or are there more? If those are it, it's really easy, just use regexp to get the text between "was here" and "ago", for instance.<br><div class="codebox"><p>Code: </p><pre><code>regexp {was here (.*) ago} $text match thetime# now $thetime is "1 hour and 3 seconds"</code></pre></div>Similar for "last seen" and "was online" too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Aug 25, 2003 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-08-25T15:54:06-04:00</updated>

		<published>2003-08-25T15:54:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=25645#p25645</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=25645#p25645"/>
		<title type="html"><![CDATA[strip times]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=25645#p25645"><![CDATA[
hi,<br><br>i'm working on this for hours but no success<br>i want strip the time from a string<br>samples:<br>xxx was here 1 hour and 3 seconds ago<br>xxx last seen 1 week 5 days 3 hrs 5 mins 1 sec<br>xxx was online 5mins 3sec ago<br>--<br><br>i only need the time .. -&gt; 1 hour 3 seconds<br>or 1 week 5 days 3 hrs 5 mins 1 sec<br><br>how can i strip this parts from the string<br><br>regards w0t<p>Statistics: Posted by Guest — Mon Aug 25, 2003 3:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
