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

	<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>2009-03-08T16:24:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-03-08T16:24:39-04:00</updated>

		<published>2009-03-08T16:24:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87771#p87771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87771#p87771"/>
		<title type="html"><![CDATA[regsub syntax]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87771#p87771"><![CDATA[
Ah OK, thanks a lot. I get the gist of it now.<br><br>I'm going to try just this. Should be OK I expect (now I've seen what isn't in the manual)<br><div class="codebox"><p>Code: </p><pre><code>set txt "this is a test (hopefully). We'll see" set txt [regsub -all -- {\(([^)]*)\)} $txt "(\00314\\1\003)"] </code></pre></div>Hmm, I just saw your post speechless, perhaps this then<br><div class="codebox"><p>Code: </p><pre><code>set txt "this is a test (hopefully). We'll see" set txt [regsub -all -- {\(([^)]*?)\)} $txt "(\00314\\1\003)"] </code></pre></div>Anyway. Thanks guys. I can have a play now I know about these replacement functions.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sun Mar 08, 2009 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2009-03-08T16:05:46-04:00</updated>

		<published>2009-03-08T16:05:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87770#p87770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87770#p87770"/>
		<title type="html"><![CDATA[regsub syntax]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87770#p87770"><![CDATA[
<blockquote class="uncited"><div>&lt;speechles&gt; .tcl set txt "this is a test (hopefully). We'll (see) what happens (here)" <br>&lt;sp33chy&gt; Tcl: this is a test (hopefully). We'll (see) what happens (here)<br>&lt;speechles&gt; .tcl set txt [regsub -all -- {\((.*?)\)} $txt "\(\00309\\1\003\)"] <br>&lt;sp33chy&gt; Tcl: this is a test (<span style="color:green">hopefully</span>). We'll (<span style="color:green">see</span>) what happens (<span style="color:green">here</span>)</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sun Mar 08, 2009 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tsukeh]]></name></author>
		<updated>2009-03-08T15:55:28-04:00</updated>

		<published>2009-03-08T15:55:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87768#p87768</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87768#p87768"/>
		<title type="html"><![CDATA[regsub syntax]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87768#p87768"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set txt "this is a test (hopefully). We'll see"set txt [regsub -all -- {(.*)\(([^)]*)\)(.*)} $txt "\\1(\00314\\2\003)\\3"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5911">tsukeh</a> — Sun Mar 08, 2009 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-03-08T15:18:17-04:00</updated>

		<published>2009-03-08T15:18:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87767#p87767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87767#p87767"/>
		<title type="html"><![CDATA[regsub syntax]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87767#p87767"><![CDATA[
I want to use a single regsub command to colourise text that is inside parenthesis without colourising the parenthesis themselves.<br><br>The following would additionally colourise the parenthesis<br><div class="codebox"><p>Code: </p><pre><code>set txt "this is a test (hopefully). We'll see"set txt [regsub -all -- {\([^\)]+\)} $txt "\00314&amp;\003"]</code></pre></div>The following would work but is two regsub commands<br><div class="codebox"><p>Code: </p><pre><code>set txt "this is a test (hopefully). We'll see"set txt [regsub -all -- {\(} $txt "(\00314"]set txt [regsub -all -- {\)} $txt "\003)"]</code></pre></div>Is there any regsub syntax that would accomplish my needs?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Sun Mar 08, 2009 3:18 pm</p><hr />
]]></content>
	</entry>
	</feed>
