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

	<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-07-22T09:27:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DayCuts]]></name></author>
		<updated>2004-07-22T09:27:28-04:00</updated>

		<published>2004-07-22T09:27:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38969#p38969</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38969#p38969"/>
		<title type="html"><![CDATA[Pattern for a Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38969#p38969"><![CDATA[
Don't know if this makes much difference, but i always put regular expressions inside {} brackets rather than "".  As i know {} forces it to ignore any special charactors that tcl would normally parse itself. (such as the []'s)<br><br>This should eliminate the need for the extra \ escapes you put into the code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5073">DayCuts</a> — Thu Jul 22, 2004 9:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Caribou]]></name></author>
		<updated>2004-07-21T21:27:24-04:00</updated>

		<published>2004-07-21T21:27:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38951#p38951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38951#p38951"/>
		<title type="html"><![CDATA[Pattern for a Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38951#p38951"><![CDATA[
No, im sorry you were right, [^\d] is working correctly, i just add problem cause my bot tried to launch this as a command [], i don't know why but i made this :<br><div class="codebox"><p>Code: </p><pre><code>if {[regexp "(8|08|24|40|56|72|88),(2\[^\\d]|02|18|34|50|66|82|98)" $arg] &amp;&amp; [regexp "" $arg]} {detect} elseif {[regexp "(8\[^\\d]|08|24|40|56|72|88)" $arg] &amp;&amp; [regexp ",(2\[^\\d]|02|18|34|50|66|82|98)" $arg] &amp;&amp; [regexp "" $arg]} {detect}</code></pre></div>And i think it would detect any sort of bold-yellow/darkblue, it seems to working nice, what do you think of this ?<br><br>Thanks a lot for your help <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=4823">Caribou</a> — Wed Jul 21, 2004 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DayCuts]]></name></author>
		<updated>2004-07-21T20:08:10-04:00</updated>

		<published>2004-07-21T20:08:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38947#p38947</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38947#p38947"/>
		<title type="html"><![CDATA[Pattern for a Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38947#p38947"><![CDATA[
try <strong class="text-strong">\D+</strong> instead of <strong class="text-strong">[^\d]</strong><br>\D is essentially the same thing as ^\d... You may also want to look at exactly what is being passed, maybe there is other control codes, or a space or something else between the color codes and the non-digit.<br><br>Such as '(K)08,02(B)text' or '(K)08,02 text'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5073">DayCuts</a> — Wed Jul 21, 2004 8:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Caribou]]></name></author>
		<updated>2004-07-21T07:46:16-04:00</updated>

		<published>2004-07-21T07:46:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38910#p38910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38910#p38910"/>
		<title type="html"><![CDATA[Pattern for a Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38910#p38910"><![CDATA[
im not able to use  [^\d], maybe i made something wrong with it.<br><blockquote class="uncited"><div>[regexp "(8|08|24|40|56|72|88),(2|02|18|34|50|66|82|98)[^\d]" $text]</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4823">Caribou</a> — Wed Jul 21, 2004 7:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DayCuts]]></name></author>
		<updated>2004-07-17T21:03:39-04:00</updated>

		<published>2004-07-17T21:03:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38741#p38741</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38741#p38741"/>
		<title type="html"><![CDATA[Pattern for a Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38741#p38741"><![CDATA[
(0)?8,(0)?2 or \003(0)?8,(0)?2 should match the color scheme you are looking for.  note the 0's are optional because they are not required in irc therefor not always used.  You shouldn't need the higher number because nobody ever really uses them.  but modified version would be something like.. <div class="codebox"><p>Code: </p><pre><code>(0)?(8|24|40|56|72|88),(0)?(2|18|34|50|66|82|98)</code></pre></div>Also, the ()'s are not needed around a single charactor, they are use for mainly for optional items, or to group a list of several possibilities.<br><br>Oh, and something like [^\d] would detect anything not a number<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5073">DayCuts</a> — Sat Jul 17, 2004 9:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Caribou]]></name></author>
		<updated>2004-07-17T18:54:05-04:00</updated>

		<published>2004-07-17T18:54:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=38739#p38739</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=38739#p38739"/>
		<title type="html"><![CDATA[Pattern for a Regexp]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=38739#p38739"><![CDATA[
Hi there,<br><br>Im trying to make a pattern to detect a specific mirccolor and report it.<br><br>i want him to find Yellow on Darkblue<br><br>here is what i made actually :<br><br>"()(8|08|24|40|56|72|88)(,)(02|2|18|34|50|66|82|98)"<br><br>But with this i got a problem, sometimes color can be "24,23" and it will detect it as "24,2", so i want him to check if there are no numeric character just next<br><br>I tried to add something like "[a-zA-Z]" but it wasn't working, im from mirc scripting and sometimes i make few mistake, this is working on mircscripting.<br><br>Is there anyway to add just at the end of my actual patern a sequence who mean 'anything else than a number' ?<br><br>Thanks for any help or alternate solutions :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4823">Caribou</a> — Sat Jul 17, 2004 6:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
