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

	<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>2006-05-10T20:57:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-10T20:57:44-04:00</updated>

		<published>2006-05-10T20:57:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62915#p62915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62915#p62915"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62915#p62915"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set RE [string map {( \\( ) \\) * \\*} $RE]</code></pre></div>You might want to add more special characters to this list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed May 10, 2006 8:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[StaleJoke]]></name></author>
		<updated>2006-05-10T20:54:17-04:00</updated>

		<published>2006-05-10T20:54:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62914#p62914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62914#p62914"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62914#p62914"><![CDATA[
On the same lines, if the bot encounters an astrix * as part of the word ( e.g. word* ) it gives me the error as:<br><br>Tcl error [repact_fld]: couldn't compile regular expression pattern: quantifier operand invalid<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7046">StaleJoke</a> — Wed May 10, 2006 8:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-04T20:13:03-04:00</updated>

		<published>2006-05-04T20:13:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62620#p62620</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62620#p62620"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62620#p62620"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set RE [string map {( \\( ) \\)} $RE]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu May 04, 2006 8:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[StaleJoke]]></name></author>
		<updated>2006-05-04T20:02:00-04:00</updated>

		<published>2006-05-04T20:02:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62619#p62619</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62619#p62619"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62619#p62619"><![CDATA[
Done.<br><div class="codebox"><p>Code: </p><pre><code>set r [regexp -nocase -all -- [subst -nocommands -nobackslashes $RE] $arg]</code></pre></div>But problem happens when it the var $RE is <strong class="text-strong">)</strong> or a <strong class="text-strong">(</strong> <br>The error it spews out is <br><br>Tcl error [rep_fld]: couldn't compile regular expression pattern: parentheses () not balanced<br><br>Any suggestions ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7046">StaleJoke</a> — Thu May 04, 2006 8:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[avilon]]></name></author>
		<updated>2006-05-04T11:54:56-04:00</updated>

		<published>2006-05-04T11:54:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62608#p62608</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62608#p62608"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62608#p62608"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set RE {$t1|$t2}set r [regexp -nocase -all -- [subst -nocommands -nobackslashes $RE] $arg]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5191">avilon</a> — Thu May 04, 2006 11:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-03T21:01:58-04:00</updated>

		<published>2006-05-03T21:01:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62603#p62603</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62603#p62603"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62603#p62603"><![CDATA[
Variables are not expanded inside of curly braces, you need to use double quotes as Sir_Fz suggested when using variables for matchin with regexp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Wed May 03, 2006 9:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-05-03T20:42:54-04:00</updated>

		<published>2006-05-03T20:42:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62602#p62602</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62602#p62602"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62602#p62602"><![CDATA[
$ has special meaning inside {} in regexp. Try "" instead {}.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed May 03, 2006 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[StaleJoke]]></name></author>
		<updated>2006-05-03T19:52:59-04:00</updated>

		<published>2006-05-03T19:52:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62601#p62601</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62601#p62601"/>
		<title type="html"><![CDATA[regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62601#p62601"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set r [regexp -nocase -all {$t1|$t2} $arg]</code></pre></div>Doesn't work. Any corrections need to be done ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7046">StaleJoke</a> — Wed May 03, 2006 7:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
