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

	<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-18T08:04:59-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-04-18T08:04:59-04:00</updated>

		<published>2004-04-18T08:04:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35670#p35670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35670#p35670"/>
		<title type="html"><![CDATA[regsub $nick escape | char?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35670#p35670"><![CDATA[
Thank you for your quick reply, works like a charm now!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> (used string map)<p>Statistics: Posted by Guest — Sun Apr 18, 2004 8:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-04-17T20:06:08-04:00</updated>

		<published>2004-04-17T20:06:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35663#p35663</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35663#p35663"/>
		<title type="html"><![CDATA[regsub $nick escape | char?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35663#p35663"><![CDATA[
Because regsub uses regular expressions for it's matching mechanism,<br>the | is interpretted as "OR" by regsub.... these need to be escaped if you mean | literally...<br><br>ie.<div class="codebox"><p>Code: </p><pre><code>regsub -all "\\|" $nick "\\\|" nick2regsub -all "$nick2" $nickstring "" nickstring</code></pre></div>However, this can obviously avoided by using string map, as it<br>does not use regular expressions for its matching mechanism...<br>ie.<div class="codebox"><p>Code: </p><pre><code>set nickstring [string map "$nick {}" $nickstring]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat Apr 17, 2004 8:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-04-17T19:34:49-04:00</updated>

		<published>2004-04-17T19:34:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35662#p35662</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35662#p35662"/>
		<title type="html"><![CDATA[regsub $nick escape | char?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35662#p35662"><![CDATA[
I got a script that removes users nick from a string with a certain trigger. The problem is that when the nick has | character in it, regsub removes the nick but leaves the | character.. Can I somehow go around this..?<br><br>the regsub I have is:<br><br>regsub -all -nocase "$nick" $nick_string "" nick_string<p>Statistics: Posted by Guest — Sat Apr 17, 2004 7:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
