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

	<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>2011-05-03T03:08:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-05-03T03:08:40-04:00</updated>

		<published>2011-05-03T03:08:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96820#p96820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96820#p96820"/>
		<title type="html"><![CDATA[TCL bind is a Regex?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96820#p96820"><![CDATA[
@nml375 : A "% *youtube.com*" pubm bind is exactly what I had in mind when suggested it in the first place, although I should have mentioned that too. <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=187">caesar</a> — Tue May 03, 2011 3:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pzOr]]></name></author>
		<updated>2011-05-02T14:10:03-04:00</updated>

		<published>2011-05-02T14:10:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96818#p96818</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96818#p96818"/>
		<title type="html"><![CDATA[TCL bind is a Regex?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96818#p96818"><![CDATA[
I just finished doing this, just as your helped arrived, but i was too stressed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Took me a while tho. I did exactly what nml375 suggested.<br><br>Here it is:<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "% *http://*website-name*" handle_gameurlset watch [regexp -nocase -- {(?:http://www\.)?site\.com/.{0,2}code/([-_0-9A-Za-z]+)&amp;?.*?} $text url gameid]if {$watch} {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11118">pzOr</a> — Mon May 02, 2011 2:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-05-02T12:43:00-04:00</updated>

		<published>2011-05-02T12:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96817#p96817</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96817#p96817"/>
		<title type="html"><![CDATA[TCL bind is a Regex?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96817#p96817"><![CDATA[
The pubm binding only supports glob-style patterns, no regex pattern. Unfortunately, glob-patterns aren't that powerful.<br>I'd probably use a rough glob-pattern to look for "% *youtube.com*", and do some more advanced matching within the proc, using regexp and/or regsub<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon May 02, 2011 12:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-05-02T11:50:24-04:00</updated>

		<published>2011-05-02T11:50:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96814#p96814</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96814#p96814"/>
		<title type="html"><![CDATA[TCL bind is a Regex?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96814#p96814"><![CDATA[
Have you checked 'bind pubm' ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon May 02, 2011 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pzOr]]></name></author>
		<updated>2011-05-01T18:09:39-04:00</updated>

		<published>2011-05-01T18:09:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96811#p96811</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96811#p96811"/>
		<title type="html"><![CDATA[TCL bind is a Regex?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96811#p96811"><![CDATA[
So is it possible? And how should I do it?<br><br>-&gt; I have decent TCL capablities, and i can easily read up on code and understand it. <br><br>I haven't found however anything, anywhere on how to have a Regular Expression as a bind.<br><br>Let's say Youtube for instance.<br>Someone would type a link<br><a href="http://youtube.com/watch?v=12121212121" class="postlink">http://youtube.com/watch?v=12121212121</a><br><br>By testing what was typed against my regex, it would then enter my proc to query youtube.<br>I just need the first part, a functional regex bind, which can work like this:<br><br>Nick: <a href="http://youtube.com/watch?v=12121212121" class="postlink">http://youtube.com/watch?v=12121212121</a><br>Nick: Here is my video <a href="http://youtube.com/watch?v=12121212121" class="postlink">http://youtube.com/watch?v=12121212121</a><br>Nick: <a href="http://www.youtube.com/watch?v=121212121&amp;featured" class="postlink">www.youtube.com/watch?v=121212121&amp;featured</a><br><br>I can create my own regex tho, after i know how to enter a proc if it matches.<br><br>Seeing as how every code i've seen, has a specific bind to a proc.<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11118">pzOr</a> — Sun May 01, 2011 6:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
