<?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: Snippets for regex</title>
		<link>http://www.bytemycode.com</link>
		<description>Snippets for this tag.</description>
		<pubDate>Sun, 06 Jul 2008 05:08:30 +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>PHP email validation</title>
	<link>http://www.bytemycode.com/snippets/snippet/714/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/714/comments/</comments>
	<pubDate>Tue, 04 Sep 2007 22:24:04 +0000</pubDate>
	<dc:creator>explode</dc:creator>
	<category>Email, PHP, regex, Validate</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/714/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Sep. 4th, 2007  10:24 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/714/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/explode/" title="Helper">explode</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/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/regex">regex</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/714/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>This is a simple function to check if an email is valid or not.</p>
		]]>
	</description>
</item><item>
	<title>Search your Gmail account for any string</title>
	<link>http://www.bytemycode.com/snippets/snippet/451/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/451/comments/</comments>
	<pubDate>Tue, 10 Oct 2006 12:39:40 +0000</pubDate>
	<dc:creator>robert</dc:creator>
	<category>blurb, Email, Gmail, message, regex</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/451/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Oct. 10th, 2006  12:39 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/451/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/robert/" title="Beginner">robert</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/blurb">blurb</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Email">Email</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Gmail">Gmail</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/message">message</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/regex">regex</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/451/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 4
			<p>This perl subroutine uses the CPAN module Mail::Webmail::Gmail to iterate through a Gmail account searching for a particular string. If a match is found, the sender's name along with his/her email address, the subject, and the "blurb" is printed to standard out. Also, all messages found will be archived automatically within Gmail to clear the message from the inbox folder. The subroutine returns the number of messages found back to the calling environment.<br /><br />Sample invocation: check_email(username, password);<br /><br />By default, the subroutine will use encryption to connect to Gmail however, by setting encrypt_session to '0' will disable encryption.</p>
		]]>
	</description>
</item>
	</channel>
</rss>