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

	<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-11T18:17:03-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-11-11T18:17:03-04:00</updated>

		<published>2002-11-11T18:17:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13063#p13063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13063#p13063"/>
		<title type="html"><![CDATA[regsub ...?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13063#p13063"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set html [lrange [split $html ,] 6 end]</code></pre></div>the simplest way <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Nov 11, 2002 6:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-10T19:49:07-04:00</updated>

		<published>2002-11-10T19:49:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13014#p13014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13014#p13014"/>
		<title type="html"><![CDATA[regsub ...?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13014#p13014"><![CDATA[
Thanks! Worked just fine...<br><br>A little wuick question... What if I wanted to go the other way?<br><blockquote class="uncited"><div>Listeners: 4,1,8,80,4,128,Fpu - Racer Car (Voidcom)&lt;/body&gt;&lt;/html&gt;</div></blockquote>Have it return from <strong class="text-strong">Fpu - Racer Car</strong> and forward? And not whats behind...?<br><br>Can you reverse it somehow ?<br><br>The number <strong class="text-strong">128</strong> is static!<br><blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set html [lindex [split $html ,] 0]</code></pre></div>add this line right above the putchan command...</div></blockquote><p>Statistics: Posted by Guest — Sun Nov 10, 2002 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-11-10T18:54:43-04:00</updated>

		<published>2002-11-10T18:54:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13008#p13008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13008#p13008"/>
		<title type="html"><![CDATA[regsub ...?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13008#p13008"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set html [lindex [split $html ,] 0]</code></pre></div>add this line right above the putchan command...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sun Nov 10, 2002 6:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-11-10T18:20:01-04:00</updated>

		<published>2002-11-10T18:20:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13007#p13007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13007#p13007"/>
		<title type="html"><![CDATA[regsub ...?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13007#p13007"><![CDATA[
I need to parse information from a simple HTML file...<br><br>I've tried looking through google.tcl, and I must confess, it's a little too complicated for me.. <br><br>However I've found another script that was far more simple, but not nearly as advanced, and therefore more difficult to get to do what I want..<br><div class="codebox"><p>Code: </p><pre><code>set radio_url "http://213.114.155.110:8000/7.html"bind pub - !users users_getproc users_get {nick mask hand chan args} {global radio_urlset file [open "|lynx -source $radio_url" r]set html "[gets $file]"regsub "&lt;HTML&gt;&lt;meta http-equiv=\"Pragma\" content=\"no-cache\"&gt;&lt;/head&gt;" $html "" html      regsub "&lt;body&gt;" $html "\002 Listeners: \002" htmlputchan $chan $html}</code></pre></div>The webpage is following:<blockquote class="uncited"><div>&lt;HTML&gt;&lt;meta http-equiv="Pragma" content="no-cache"&gt;&lt;/head&gt;&lt;body&gt;4,1,8,80,4,128,Fpu - Racer Car (Voidcom)&lt;/body&gt;&lt;/html&gt;</div></blockquote>And the script returns:<blockquote class="uncited"><div>  Listeners: 4,1,8,80,4,128,Fpu - Racer Car (Voidcom)&lt;/body&gt;&lt;/html&gt;</div></blockquote>My question is... Can <strong class="text-strong">regsub</strong> be used in such a way, that it ignores all text from the first comma and forward.. So it returns this:<blockquote class="uncited"><div>  Listeners: 4</div></blockquote>Help!  <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 Guest — Sun Nov 10, 2002 6:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
