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

	<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>2021-06-29T09:06:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-06-29T09:06:55-04:00</updated>

		<published>2021-06-29T09:06:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110035#p110035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110035#p110035"/>
		<title type="html"><![CDATA[Testing if a IP is valid]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110035#p110035"><![CDATA[
Awesome! Thanks very much caesar <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>And thanks CrazyCat for the link you provided as well  <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=12849">ComputerTech</a> — Tue Jun 29, 2021 9:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2021-06-29T03:01:11-04:00</updated>

		<published>2021-06-29T03:01:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110034#p110034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110034#p110034"/>
		<title type="html"><![CDATA[Testing if a IP is valid]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110034#p110034"><![CDATA[
Here's a better link with <a href="https://wiki.tcl-lang.org/page/Regular+Expression+Examples" class="postlink">Regular Expression Examples</a>. <br><br>If you don't want to fiddle with regexp and basically reinvent the wheel, then use the ip package that comes with TCLlib that offers some tools to validate ipv4 or ipv6, like:<div class="codebox"><p>Code: </p><pre><code>% package require ip1.4::ip::version 192.168.0.11% ::ip::version 192.168.0.256-1% ::ip::is ipv4 192.168.0.11% ::ip::version 192.198.0.256-1% ::ip::version 2001:bc8:32d7:26c::6</code></pre></div>You can find the source code of a previous version <a href="https://opensource.apple.com/source/tcl/tcl-87/tcl_ext/tcllib/tcllib/modules/dns/ip.tcl.auto.html" class="postlink">here</a> (or if you are on Debian you should find it in <em class="text-italics">/usr/share/tcltk/tcllib1.20/dns/ip.tcl</em>, if not do a <em class="text-italics">locate ip.tcl</em>) to see what other commands are available.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jun 29, 2021 3:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2021-06-29T02:36:23-04:00</updated>

		<published>2021-06-29T02:36:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110033#p110033</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110033#p110033"/>
		<title type="html"><![CDATA[Testing if a IP is valid]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110033#p110033"><![CDATA[
Hum, did you look @ <a href="https://regex101.com/library?orderBy=RELEVANCE&amp;page=1&amp;search=IP" class="postlink">https://regex101.com/library?orderBy=RE ... &amp;search=IP</a> ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Jun 29, 2021 2:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-06-28T18:31:10-04:00</updated>

		<published>2021-06-28T18:31:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=110032#p110032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=110032#p110032"/>
		<title type="html"><![CDATA[Testing if a IP is valid]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=110032#p110032"><![CDATA[
So i am trying to find a code that will check if a IP has the correct syntax of a IPv4 or IPv6 IP, i have no idea how that would look, but all help is much appreciated <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=12849">ComputerTech</a> — Mon Jun 28, 2021 6:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
