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

	<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-10-18T00:22:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-18T00:22:26-04:00</updated>

		<published>2004-10-18T00:22:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41972#p41972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41972#p41972"/>
		<title type="html"><![CDATA[parse next line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41972#p41972"><![CDATA[
if its a continues string maybe look at string map {} in tcl man otherwize if ur trying to strip html tags check the forum i just asked teh same question <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> and its explained with examples<br>to parse the next line u could maybe do this <div class="codebox"><p>Code: </p><pre><code>set rf [open file]; or you could get it directly from ur socket.. while {![eof $rf]} {  gets  $rf x  if {![string match -nocase "urstring" $x]} {     continue  }  gets $rf x   puts $x}close $rf</code></pre></div>i think .. at least thats what i understand from tcl man .. could be wrong to ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Mon Oct 18, 2004 12:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-11T07:55:50-04:00</updated>

		<published>2004-10-11T07:55:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41755#p41755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41755#p41755"/>
		<title type="html"><![CDATA[parse next line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41755#p41755"><![CDATA[
first times thx for your answer, but i couldt'n insert it in my script. My tcl knowledge is very limited.<br><br>this script should post the table from the german football league.<br><br>this is a part from the source of the page:<br><div class="codebox"><p>Code: </p><pre><code>&lt;td nowrap valign="top"&gt;&lt;a href="/vereine/vflwolfsburg/2005/" title="Portrait und Saisonverlauf von VfL Wolfsburg"&gt;VfL Wolfsburg&lt;/a&gt;&lt;/td&gt;&lt;td align="right" valign="top"&gt;7 &lt;/td&gt;&lt;td align="right" valign="top"&gt;6&lt;/td&gt;&lt;td align="right" valign="top"&gt;0&lt;/td&gt;&lt;td align="right" valign="top"&gt;1&lt;/td&gt;&lt;td align="center" valign="top"&gt; 13:6  &lt;/td&gt;&lt;td align="right" valign="top"&gt;+7&lt;/td&gt;&lt;td align="right" valign="top"&gt;18&lt;/td&gt;&lt;/tr&gt;</code></pre></div>the link is <a href="http://www.fussballdaten.de/bundesliga/" class="postlink">http://www.fussballdaten.de/bundesliga/</a><br><br>i have change all &amp;nbsp with " " with regsub -all { } $buffer " " buffer<br><br>can you give me a example how a parse the data after<br>"&lt;td nowrap valign="top"&gt;&lt;a href="/vereine/vflwolfsburg/2005/" title="Portrait und Saisonverlauf von VfL Wolfsburg"&gt;VfL Wolfsburg&lt;/a&gt;&lt;/td&gt;" for every place in the table?<br><br>i hope you understand what i mean.<br><br>greets Koepi<p>Statistics: Posted by Guest — Mon Oct 11, 2004 7:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spock]]></name></author>
		<updated>2004-10-08T13:53:32-04:00</updated>

		<published>2004-10-08T13:53:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41688#p41688</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41688#p41688"/>
		<title type="html"><![CDATA[parse next line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41688#p41688"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>  set data [split [read $fp] "\n"]  if {[set a [lsearch -glob $data "*VfL Wolfsburg*"]] != -1} { puts "[lindex $data [expr $a + 1]]" }  close $fp</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2369">spock</a> — Fri Oct 08, 2004 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-08T13:10:07-04:00</updated>

		<published>2004-10-08T13:10:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41686#p41686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41686#p41686"/>
		<title type="html"><![CDATA[parse next line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41686#p41686"><![CDATA[
ok, i try.<br><br>i like to parse a html file. I search the file for "*VfL Wolfsburg*". In the line after "*VfL Wolfsburg*" is the string i want to grab.<br>The string want tu grab is much often in the html file, so i must locate "*VfL Wolfsburg*" one line bevore.<br><br>ok?<p>Statistics: Posted by Guest — Fri Oct 08, 2004 1:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-08T13:02:44-04:00</updated>

		<published>2004-10-08T13:02:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41685#p41685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41685#p41685"/>
		<title type="html"><![CDATA[parse next line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41685#p41685"><![CDATA[
could u explain closer what it is you are trying to reach ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Oct 08, 2004 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-10-08T10:56:36-04:00</updated>

		<published>2004-10-08T10:56:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41677#p41677</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41677#p41677"/>
		<title type="html"><![CDATA[parse next line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41677#p41677"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach line [split $buffer \n] {      if {[string match "*VfL Wolfsburg*" $line]} {      regexp {\"([^&lt;]*)\" BORDER} $line garb name</code></pre></div>How can i make, that he parse "name" from the line after he found "VfL Wolfsburg" and not from the same line?<br><br>Sorry for my bad english, i'am german <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">.<br><br>greets<p>Statistics: Posted by Guest — Fri Oct 08, 2004 10:56 am</p><hr />
]]></content>
	</entry>
	</feed>
