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

	<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-07-02T04:17:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BiLL]]></name></author>
		<updated>2003-07-01T14:42:08-04:00</updated>

		<published>2003-07-01T14:42:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22834#p22834</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22834#p22834"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22834#p22834"><![CDATA[
big thanks hehe.<br>great forum <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=50">BiLL</a> — Tue Jul 01, 2003 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-02T04:17:34-04:00</updated>

		<published>2003-07-01T14:23:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22833#p22833</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22833#p22833"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22833#p22833"><![CDATA[
oops  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br>forgot the dot...<div class="codebox"><p>Code: </p><pre><code>if {![regexp {^(\d\.\d)$} [lindex $arg 1]]} {</code></pre></div>should do the trick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Jul 01, 2003 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-01T13:11:26-04:00</updated>

		<published>2003-07-01T13:11:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22829#p22829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22829#p22829"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22829#p22829"><![CDATA[
\.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Jul 01, 2003 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BiLL]]></name></author>
		<updated>2003-07-01T11:15:43-04:00</updated>

		<published>2003-07-01T11:15:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22823#p22823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22823#p22823"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22823#p22823"><![CDATA[
i am using<br>if {![regexp {^([0-9].[0-9])$} [lindex $arg 1]]} { <br>right now.<br><br>how do i esacpe the "." ?<br>i want to enforce: digitDOTdigit<br>digit = 0-9<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=50">BiLL</a> — Tue Jul 01, 2003 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-01T10:49:50-04:00</updated>

		<published>2003-07-01T10:49:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22819#p22819</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22819#p22819"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22819#p22819"><![CDATA[
...and escaping the "." would make it only match "digit-period-digit" which i suspect is what you want. (the current rule will match "digit-anything-digit")<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Jul 01, 2003 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-07-01T09:48:44-04:00</updated>

		<published>2003-07-01T09:48:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22813#p22813</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22813#p22813"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22813#p22813"><![CDATA[
if you want to shorten the line you can do this:<div class="codebox"><p>Code: </p><pre><code>if {![regexp {^(\d.\d)$} [lindex $arg 1]]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Jul 01, 2003 9:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BiLL]]></name></author>
		<updated>2003-07-01T09:23:44-04:00</updated>

		<published>2003-07-01T09:23:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22812#p22812</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22812#p22812"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22812#p22812"><![CDATA[
big thx ppslim  worked fine!!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=50">BiLL</a> — Tue Jul 01, 2003 9:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-07-01T04:48:01-04:00</updated>

		<published>2003-07-01T04:48:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22808#p22808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22808#p22808"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22808#p22808"><![CDATA[
Quick tip: Enclose your RegExp expression in curly braces rather than quotes.<br><br>This will save the requirment to excape characters, except where you need to force a escape code.<br><br>This will make the expression look neater, and save you from having 3 slashes to escape one character.<br><br>You above code would become (including fix).<br><div class="codebox"><p>Code: </p><pre><code>if {![regexp {^([0-9].[0-9])$} [lindex $arg 1]]} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Jul 01, 2003 4:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-06-30T20:10:24-04:00</updated>

		<published>2003-06-30T20:10:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22783#p22783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22783#p22783"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22783#p22783"><![CDATA[
add a \$ to the end of your rule <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Mon Jun 30, 2003 8:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BiLL]]></name></author>
		<updated>2003-06-30T18:22:58-04:00</updated>

		<published>2003-06-30T18:22:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22773#p22773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22773#p22773"/>
		<title type="html"><![CDATA[Regexp Help!]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22773#p22773"><![CDATA[
Greetings,<br><br>I read the manuel of Regexp but I still don't get it,<br>I think its not in manual.<br><br>My problem: <br>This regexp<br><br>if {![regexp "^(\[0-9\].\[0-9\])" [lindex $arg 1]]} {<br><br>Input like 1.0 works -&gt; CORRECT<br>Input like x1.0 doesnt work -&gt; CORRECT<br>But<br>Input like 1.0xxx &lt;- any other word after that 0 works also<br>but I want only the user be able to input 1.0 and not 1.0xxx<br><br>I tried to add the ^ to the end of the regexp "" but it doenst work that way - which would be easy ;(.<br>Anyone knows a solution?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=50">BiLL</a> — Mon Jun 30, 2003 6:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
