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

	<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-04-01T07:08:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2004-04-01T07:08:50-04:00</updated>

		<published>2004-04-01T07:08:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35127#p35127</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35127#p35127"/>
		<title type="html"><![CDATA[Help about scan command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35127#p35127"><![CDATA[
Hello,<br><br>I have two sentences like:<div class="codebox"><p>Code: </p><pre><code>good hello how are you.mp3            ::MORE:: 1.2KB 32/44 Mono [43s]bad I_am_fine_thank_you.mp3          ::MORE:: 3.4MB 112/44 Stereo [3m32s]</code></pre></div>(space between .mp3 and :: is &lt;SPACE&gt;&lt;CHAR 160&gt;*&lt;CHAR 160&gt;&lt;SPACE&gt;<br><br>and that's I want is to set in some variables some values, for the line 2:<div class="codebox"><p>Code: </p><pre><code>set id "bad"set file "I_am_fine_thank_you.mp3" (Not the spaces and chars 160)set size "3.4MB"set bit "112"set time 3m32s</code></pre></div>I have written this code:<div class="codebox"><p>Code: </p><pre><code>scan $line %s%\[^[format %c 160]\]::MORE::%s%d%s nick file size quality lengthset file [lrange $file 0 end];# in order to remove the spaces in the front and the backset bit [string trimleft $bit]# I can set the length as 3m32s and if I use:# scan $line %s%\[^[format %c 160]\]::MORE::%s%d%s[b]%s[/b] nick file size quality tmp length# it doesn't work :(</code></pre></div>Please help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2661">cerberus_gr</a> — Thu Apr 01, 2004 7:08 am</p><hr />
]]></content>
	</entry>
	</feed>
