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

	<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>2010-05-05T06:06:56-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2010-05-05T06:06:56-04:00</updated>

		<published>2010-05-05T06:06:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93034#p93034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93034#p93034"/>
		<title type="html"><![CDATA[Regular expression to match patterns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93034#p93034"><![CDATA[
[11:00] &lt;@arfer&gt; % return [regexp -- {(\d{1,3}\.){3}\d{1,3}} 123.235.26.5]<br>[11:00] &lt;@Baal&gt; 1<br>[11:00] &lt;@arfer&gt; % return [regexp -- {(\d{1,3}\.){3}\d{1,3}} 123.235.2a.5]<br>[11:00] &lt;@Baal&gt; 0<br><br>Don't forget that this is not sufficient by itself to determine if a string is a valid ipv4 numeric ip. You will have to split the string at '.' and test if each octet is &lt;= 255.<br><br>I suppose life gets even more difficult if you also want to determine if it is a valid external IP, for example not loopback or private lan. I have some code somewhere for these tests. If you have any interest, I will try to dig it out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Wed May 05, 2010 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[passion]]></name></author>
		<updated>2010-04-26T20:13:05-04:00</updated>

		<published>2010-04-26T20:13:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92930#p92930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92930#p92930"/>
		<title type="html"><![CDATA[Regular expression to match patterns]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92930#p92930"><![CDATA[
Hi guys,<br><br>I just would like to know how to write TCL script using proc for regexp matching the following pattern to match the user i/p<br><br><br>XYZ XZZ XZY XAX<br><br>Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11189">passion</a> — Mon Apr 26, 2010 8:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
