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

	<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>2002-11-19T11:59:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Taiyaki]]></name></author>
		<updated>2002-11-19T11:59:13-04:00</updated>

		<published>2002-11-19T11:59:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13373#p13373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13373#p13373"/>
		<title type="html"><![CDATA[how to parse text from ::HTTP::data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13373#p13373"><![CDATA[
ah, i got it to work!  thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2212">Taiyaki</a> — Tue Nov 19, 2002 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-19T05:05:29-04:00</updated>

		<published>2002-11-19T05:05:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13356#p13356</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13356#p13356"/>
		<title type="html"><![CDATA[how to parse text from ::HTTP::data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13356#p13356"><![CDATA[
split is a list command. It operated on strings, and converts them into lists. These brackets are used to designate the begining and end of a item within a list.<br><br>As you have done, you have split the string, using |.<br><br>You can then use the "join" command to convert from a list, into a string. Again, you need to specify a charater, you use as a joining character. If you where to use a |, it would return your original list (to show how it works). You can use " " (including quotes) to join it with a space.<br><br>Notice the {} at the end of the list. This is because you have a | at the end of the string. To get around this, you can use "string trim" to remove the end  white space that "join" will generate.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 19, 2002 5:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Taiyaki]]></name></author>
		<updated>2002-11-19T01:51:23-04:00</updated>

		<published>2002-11-19T01:51:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13347#p13347</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13347#p13347"/>
		<title type="html"><![CDATA[how to parse text from ::HTTP::data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13347#p13347"><![CDATA[
ok, never mind, that, lol.  i've gotten that solved.<br><br>but now i'm at another question:<br><br>i have an output of this <div class="codebox"><p>Code: </p><pre><code>11/18/02|Cooking Master Boy|17|Anime-Keep|</code></pre></div>and after i do <strong class="text-strong">[split $list |]</strong><br><br>i get this<div class="codebox"><p>Code: </p><pre><code>11/18/02 {Cooking Master Boy} 17 Anime-Keep {}</code></pre></div>how do i make it display just <strong class="text-strong">11/18/02 Cooking Master Boy 17 Anime-Keep</strong>?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2212">Taiyaki</a> — Tue Nov 19, 2002 1:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Taiyaki]]></name></author>
		<updated>2002-11-18T22:19:41-04:00</updated>

		<published>2002-11-18T22:19:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13346#p13346</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13346#p13346"/>
		<title type="html"><![CDATA[how to parse text from ::HTTP::data]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13346#p13346"><![CDATA[
ok, i'm using this code to grab text from a remote text file<br><div class="codebox"><p>Code: </p><pre><code>package require http set cmd "!updates" bind pub -|- $cmd test proc test {nick uhost hand chan text} {   putquick "NOTICE $nick :let's hope this is faster"  set tok [::http::geturl "http://www3.telus.net/dekan/newrlsd.txt"]  set data [::http::data $tok]  foreach z [split $data \n] {    putquick "NOTICE $nick :$z"  }  ::http::cleanup $tok } </code></pre></div>and the text file contains<div class="codebox"><p>Code: </p><pre><code>11/11/02|Knights of Ramune (DVD)|01|Perfect-Anime|11/12/02|Asagiri no Miko|07-08|Elite-Fansubs|11/13/02|Southern Cross (DVD)|13-15|ILA|11/18/02|Urusei Yatsura (DVD)|1-4|ILA|</code></pre></div>i want the bot to parse this output to only display the line if it matches a certain date.  like today is 11/18/02, how do i make the bot display only the 11/18/02 line?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2212">Taiyaki</a> — Mon Nov 18, 2002 10:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
