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

	<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-04-07T17:53:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-04-07T17:53:33-04:00</updated>

		<published>2009-04-07T17:53:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88344#p88344</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88344#p88344"/>
		<title type="html"><![CDATA[[Solved] Regexps checking the whole message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88344#p88344"><![CDATA[
done  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Tue Apr 07, 2009 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-04-07T14:03:13-04:00</updated>

		<published>2009-04-07T14:03:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88342#p88342</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88342#p88342"/>
		<title type="html"><![CDATA[[Solved] Regexps checking the whole message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88342#p88342"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>^ and $ are limiters that define a limit where to start and where to end<br><br>by the way: add [SOLVED] to your topic if solved please <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Tue Apr 07, 2009 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-04-07T11:49:36-04:00</updated>

		<published>2009-04-07T11:49:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88340#p88340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88340#p88340"/>
		<title type="html"><![CDATA[[Solved] Regexps checking the whole message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88340#p88340"><![CDATA[
thanks, worked  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>I had the ^ and $<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Tue Apr 07, 2009 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2009-04-07T09:08:41-04:00</updated>

		<published>2009-04-07T09:08:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88336#p88336</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88336#p88336"/>
		<title type="html"><![CDATA[[Solved] Regexps checking the whole message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88336#p88336"><![CDATA[
never had any problems using regex before if you set it correctly, in example to yours:<br><div class="codebox"><p>Code: </p><pre><code>if {[regexp -all -nocase -- {www\.test\.(net|com)} $text]} { kick blah blah }</code></pre></div>would match<br><br><a href="http://www.test.net" class="postlink">www.test.net</a><br><a href="http://www.test.com" class="postlink">www.test.com</a><br>someone knows <a href="http://www.test.net" class="postlink">www.test.net</a>?<br>on <a href="http://www.test.com" class="postlink">www.test.com</a> there is news<br><br>unless you dont put ^ in front of the www and $ behind the (net|com) in my example its going to match either the regex alone or in a sentence.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Tue Apr 07, 2009 9:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-04-07T17:53:21-04:00</updated>

		<published>2009-04-07T08:49:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=88334#p88334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=88334#p88334"/>
		<title type="html"><![CDATA[[Solved] Regexps checking the whole message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=88334#p88334"><![CDATA[
Hi, I'm making a spam protection which is similar to this:<br><div class="codebox"><p>Code: </p><pre><code>proc spam { nick uhost hand chan text } {if {[regexp {regexp_here} $text]) { kick blah blah }}</code></pre></div>However it only works if someone sends one-word-message<br><br>Example:<br>&lt;Fill&gt; <a href="http://www.test.net" class="postlink">www.test.net</a><br>(worked and kicked me)<br>&lt;Fill&gt; visit my website <a href="http://www.test.net" class="postlink">www.test.net</a> and comment it!<br>(didn't work)<br><br>I think I'll have to use regsub or something, but I dunno how to use it. Any help will be appreciated.<br><br>Fill<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Tue Apr 07, 2009 8:49 am</p><hr />
]]></content>
	</entry>
	</feed>
