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

	<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-01-24T07:46:05-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-24T07:46:05-04:00</updated>

		<published>2003-01-24T07:46:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15752#p15752</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15752#p15752"/>
		<title type="html"><![CDATA[Help: with removing multiple spaces.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15752#p15752"><![CDATA[
Thanks to all who helped me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> everything is working fine now !<br><br>Bye<br>SkIRmiS<p>Statistics: Posted by Guest — Fri Jan 24, 2003 7:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-24T05:49:56-04:00</updated>

		<published>2003-01-24T05:49:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15746#p15746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15746#p15746"/>
		<title type="html"><![CDATA[Help: with removing multiple spaces.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15746#p15746"><![CDATA[
I hate regular expressions.<br><br>I fully well understand there power, but I simply can't understand how to create/format them properly.<br><br>Most of the reasons why I do things a slightly hard, yet still simple way.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jan 24, 2003 5:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-23T22:44:20-04:00</updated>

		<published>2003-01-23T22:44:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15738#p15738</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15738#p15738"/>
		<title type="html"><![CDATA[Help: with removing multiple spaces.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15738#p15738"><![CDATA[
I myself would just use something like: <div class="codebox"><p>Code: </p><pre><code>regsub -all {  [^ ]*} $text "" text</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 23, 2003 10:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-23T20:36:18-04:00</updated>

		<published>2003-01-23T20:36:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15732#p15732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15732#p15732"/>
		<title type="html"><![CDATA[Help: with removing multiple spaces.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15732#p15732"><![CDATA[
My fault.<br><br>In that code, change the "return [join $b]" to "return [join $a]"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 23, 2003 8:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-23T20:23:02-04:00</updated>

		<published>2003-01-23T20:23:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15730#p15730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15730#p15730"/>
		<title type="html"><![CDATA[Help: with removing multiple spaces.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15730#p15730"><![CDATA[
Hi,<br>Something is wrong here, because I got only the last word of string.<br><br>-----------------------------------<br>proc remspaces {string} { <br>  set a <ul>   <li>foreach b [split $string] { <br>    if {$b == ""} { continue } <br>    lappend a $b <br>  } <br>  return [join $b] <br>} <br><br>set dat ""<br>set dat "here is a test"<br>set dat [remspaces $dat]<br><br>putnotc $nick $dat<br><br>-----------------------------------<br><br>And result is : test<br><br>Thanks in advice <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>[/code]</li></ul><p>Statistics: Posted by Guest — Thu Jan 23, 2003 8:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-23T19:36:18-04:00</updated>

		<published>2003-01-23T19:36:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15729#p15729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15729#p15729"/>
		<title type="html"><![CDATA[Help: with removing multiple spaces.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15729#p15729"><![CDATA[
The forum, will not display spaces correctly, unless you place them in a "CODE" block.<br><br>However, this should remove the spaces.<br><div class="codebox"><p>Code: </p><pre><code>proc remspaces {string} {  set a [list]  foreach b [split $string] {    if {$b == ""} { continue }    lappend a $b  }  return [join $b]}</code></pre></div>Use like code<div class="codebox"><p>Code: </p><pre><code>set mytext "hello  with      multiple spaces"set mytext [remspaces $mytext]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 23, 2003 7:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-23T18:27:19-04:00</updated>

		<published>2003-01-23T18:27:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15725#p15725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15725#p15725"/>
		<title type="html"><![CDATA[Help: with removing multiple spaces.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15725#p15725"><![CDATA[
Hello,<br><br>Can someone help with this, I need to remove multiple spaces from string. For example I have "hello      I am    bot". I need to get this format "hello I am bot". How can I replace two or more spaces into one ?<br><br>Thanks for advices. <br>SkIRmiS<p>Statistics: Posted by Guest — Thu Jan 23, 2003 6:27 pm</p><hr />
]]></content>
	</entry>
	</feed>
