<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Related Snippets</title>
		<link>http://www.bytemycode.com</link>
		<description>Related snippets for this snippet.</description>
		<pubDate>Sun, 23 Nov 2008 10:26:50 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>URL Regular Expression</title>
	<link>http://www.bytemycode.com/snippets/snippet/796/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/796/comments/</comments>
	<pubDate>Thu, 28 Feb 2008 16:10:58 +0000</pubDate>
	<dc:creator>inxilpro</dc:creator>
	<category>"Regular, Expression", regex, RegExp</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/796/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Feb. 28th, 2008  4:10 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/796/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/inxilpro/" title="Helper">inxilpro</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22Regular">"Regular</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Expression%22">Expression"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/regex">regex</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/796/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>This is as close to a perfect URL regular expression as I've come.  It's based on <a href='http://www.ietf.org/rfc/rfc3986.txt' target="_blank">RFC 3986</a>.<br /><br /><b>A few caveats:</b><br /><br />It only accepts http/https/ftp URLs by design, but you could change that to accept any valid URI pretty easily.<br /><br />It doesn't support IP-based URLs or authenticated URLs.  This is also by design, but you could change that with a little work.</p>
		]]>
	</description>
</item><item>
	<title>Url and email regular expression</title>
	<link>http://www.bytemycode.com/snippets/snippet/662/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/662/comments/</comments>
	<pubDate>Tue, 29 May 2007 03:10:23 +0000</pubDate>
	<dc:creator>morad</dc:creator>
	<category>Email, Expression, RegExp, Regular, URL</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/662/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. May. 29th, 2007  3:10 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/662/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/morad/" title="Helper">morad</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Email">Email</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Expression">Expression</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Regular">Regular</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/URL">URL</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/662/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Reg exp for finding url and email adresses. i'm using this from any projects of me. they working <img src="http://www.bytemycode.com/img/wysiwyg/emo-bigsmile.gif" /></p>
		]]>
	</description>
</item><item>
	<title>Regex to validate an email address</title>
	<link>http://www.bytemycode.com/snippets/snippet/430/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/430/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 05:51:05 +0000</pubDate>
	<dc:creator>serpentskiss</dc:creator>
	<category>"Email Address", RegExp, Validate</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/430/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  5:51 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/430/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/serpentskiss/" title="Helper">serpentskiss</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22Email+Address%22">"Email Address"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Validate">Validate</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/430/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>PHP function to validate an email address.</p>
		]]>
	</description>
</item><item>
	<title>Regex functino to validate a URL</title>
	<link>http://www.bytemycode.com/snippets/snippet/404/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/404/comments/</comments>
	<pubDate>Thu, 28 Sep 2006 15:43:49 +0000</pubDate>
	<dc:creator>ffxfiend</dc:creator>
	<category>"php", PHP, phpcode, RegExp</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/404/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Sep. 28th, 2006  3:43 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/404/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/ffxfiend/" title="Helper">ffxfiend</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22php%22">"php"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/phpcode">phpcode</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/404/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -11
			<p>This is a faily simple function to validate a URL being passed into your scripts. It will allow for http, https, and ftp. The beginning www. of a URL is optional as well. It will also validate if you have an IP address in place of the domain name. I'm sure this can be improved upon as this is my first attempt at regular expressions but it has worked good for me so far. Please comment or improve if your able. <br /><br />Thanks!</p>
		]]>
	</description>
</item><item>
	<title>Regex Match into Array</title>
	<link>http://www.bytemycode.com/snippets/snippet/342/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/342/comments/</comments>
	<pubDate>Thu, 31 Aug 2006 18:16:49 +0000</pubDate>
	<dc:creator>psykoprogrammer</dc:creator>
	<category>ColdFusion, RegExp</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/342/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Aug. 31st, 2006  6:16 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/342/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/psykoprogrammer/" title="Helper">psykoprogrammer</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ColdFusion">ColdFusion</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/342/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>Below is a function written in ColdFusion MX that will return an array containing all matches found when running a regex against a particular string. Each array item is a structure with the match, the starting character position, the ending character position, and an array of any <br />sub-pattern captures.</p>
		]]>
	</description>
</item><item>
	<title>Simple email validation</title>
	<link>http://www.bytemycode.com/snippets/snippet/338/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/338/comments/</comments>
	<pubDate>Thu, 31 Aug 2006 07:58:56 +0000</pubDate>
	<dc:creator>ctiggerf</dc:creator>
	<category>Email, Perl, RegExp, Validate</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/338/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Aug. 31st, 2006  7:58 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/338/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/ctiggerf/" title="Scripter">ctiggerf</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Email">Email</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Perl">Perl</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Validate">Validate</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/338/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Simple function to check for a valid email address.  Makes sure the @ and a . are in the right place.  There is most likely a perl package on CPAN that would be more extensive, but this happens to work for my uses.</p>
		]]>
	</description>
</item><item>
	<title>simple email address to domain check</title>
	<link>http://www.bytemycode.com/snippets/snippet/337/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/337/comments/</comments>
	<pubDate>Thu, 31 Aug 2006 07:43:14 +0000</pubDate>
	<dc:creator>ctiggerf</dc:creator>
	<category>Email, Perl, RegExp</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/337/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Aug. 31st, 2006  7:43 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/337/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/ctiggerf/" title="Scripter">ctiggerf</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Email">Email</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Perl">Perl</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/337/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -1
			<p>Just a simple check to make sure that a person's email address matches their domain.<br /><br />For example .. in a form you have 2 textboxs .. 1 for their website url, the other for their email address.  This checks to see if the domains for the email address and the website url match.</p>
		]]>
	</description>
</item><item>
	<title>RegExp.anyOneOf()</title>
	<link>http://www.bytemycode.com/snippets/snippet/239/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/239/comments/</comments>
	<pubDate>Mon, 24 Jul 2006 21:54:28 +0000</pubDate>
	<dc:creator>svachon</dc:creator>
	<category>"Regular, Expression", JavaScript, RegExp, String</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/239/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Jul. 24th, 2006  9:54 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/239/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/svachon/" title="Helper">svachon</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22Regular">"Regular</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Expression%22">Expression"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/RegExp">RegExp</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/String">String</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/239/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>Gets a regular expression that'll search for any regexp pattern specified in the parameters.</p>
		]]>
	</description>
</item>
	</channel>
</rss>