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

	<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-05T07:15:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-05T07:15:23-04:00</updated>

		<published>2004-10-05T07:15:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41565#p41565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41565#p41565"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41565#p41565"><![CDATA[
And why would you need to manually escape chars in the element name? The error is not caused by the string map, but by something else you're doing.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Oct 05, 2004 7:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-05T06:19:51-04:00</updated>

		<published>2004-10-05T06:19:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41564#p41564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41564#p41564"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41564#p41564"><![CDATA[
Well, I bind join and used it in my script.<br>Nick: Sa]ma... no error<br><br>Then I changed to the nick:<br>Nick: Sa][ma.... error<br><br>Tcl error, invoked from within<br>'missing close bracket' or something like that.<br><br>I am trying to use $nick in a variable a global array join_part($nick).<br><br>I saw it always gives errors if two characters or more are present, not if one is present,<br><br>join_part([TesTeR]) --&gt; gives and error<br>join_part([TesTeR) --&gt; doesn't given an error<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Oct 05, 2004 6:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-05T06:03:54-04:00</updated>

		<published>2004-10-05T06:03:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41563#p41563</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41563#p41563"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41563#p41563"><![CDATA[
<blockquote class="uncited"><div>Well, it seems to work only for one char. If there are two or more same chars, then I get an error of invoked.</div></blockquote>What error do you get? It works just fine for me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Oct 05, 2004 6:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-04T21:39:59-04:00</updated>

		<published>2004-10-04T21:39:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41560#p41560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41560#p41560"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41560#p41560"><![CDATA[
Well, it seems to work only for one char. If there are two or more same chars, then I get an error of invoked.<br><br>I think 'regsub -all' will be a better idea, thanx anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Oct 04, 2004 9:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-04T03:01:07-04:00</updated>

		<published>2004-10-04T03:01:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41534#p41534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41534#p41534"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41534#p41534"><![CDATA[
LOL thanx. Yes we need to add one blackslash to the original one and two backslashes to the one to replace the original one with. <br><br>*/me* shunts, have had alot of coffee.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Oct 04, 2004 3:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-04T02:47:54-04:00</updated>

		<published>2004-10-04T02:47:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41533#p41533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41533#p41533"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41533#p41533"><![CDATA[
<blockquote class="uncited"><div>So it will be like this, I guess.<div class="codebox"><p>Code: </p><pre><code>set nick [string map {[ \[ ] \] { \{ } \} \ \\} $nick]</code></pre></div></div></blockquote>Yes and no. I can't believe you don't know how braces work after all this time scripting tcl. Read <a href="http://tcl.tk/man/tcl8.5/TclCmd/Tcl.htm#M10" class="postlink">http://tcl.tk/man/tcl8.5/TclCmd/Tcl.htm#M10</a><br><br>{[ \\[ ] \\] \{ \\\{ \} \\\} \\ \\\\}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Oct 04, 2004 2:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-04T01:39:37-04:00</updated>

		<published>2004-10-04T01:39:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41530#p41530</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41530#p41530"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41530#p41530"><![CDATA[
So it will be like this, I guess.<br><div class="codebox"><p>Code: </p><pre><code>set nick [string map {[ \[ ] \] { \{ } \} \ \\} $nick] </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Oct 04, 2004 1:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-03T15:55:02-04:00</updated>

		<published>2004-10-03T15:55:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41518#p41518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41518#p41518"/>
		<title type="html"><![CDATA[Re: How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41518#p41518"><![CDATA[
<a href="http://tcl.tk/man/tcl8.5/TclCmd/string.htm#M34" class="postlink">http://tcl.tk/man/tcl8.5/TclCmd/string.htm#M34</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Sun Oct 03, 2004 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-03T13:01:34-04:00</updated>

		<published>2004-10-03T13:01:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41517#p41517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41517#p41517"/>
		<title type="html"><![CDATA[How to combine several string map functions in one?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41517#p41517"><![CDATA[
I would like to know how to perform multiple, string map functions in one line. This function: (to reduce)<br><div class="codebox"><p>Code: </p><pre><code>[string map {"]" "\]"} $nick] + [string map {"[" "\["} $nick] + [string map {"{" "\{"} $nick] + [string map {"}" "\}"} $nick] + [string map {"\" "\\" $nick]</code></pre></div>Basically I want to escape all the special characters in a nick. I know how todo it with regsub, but I want to use string map as it is faster.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Oct 03, 2004 1:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
