<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Earnest Apathy &#187; Regular Expressions</title>
	<atom:link href="http://blog.pyrolupus.com/category/regexp/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pyrolupus.com</link>
	<description>The meaning of one life</description>
	<lastBuildDate>Mon, 20 Apr 2009 18:27:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Email Validation RegExp</title>
		<link>http://blog.pyrolupus.com/2007/11/email-validation-regexp/</link>
		<comments>http://blog.pyrolupus.com/2007/11/email-validation-regexp/#comments</comments>
		<pubDate>Fri, 02 Nov 2007 21:40:34 +0000</pubDate>
		<dc:creator>pyrolupus</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Regular Expressions]]></category>

		<guid isPermaLink="false">http://blog.pyrolupus.com/archives/5/email-validation-regexp/</guid>
		<description><![CDATA[I had to search my desktop files and email history for forty minutes before I turned this up:


var rfc2822 =
/^&#91;\w!#$%&#38;'*+/=?^`{&#124;}~-]+(?:\.[\w!#$%&#38;'*+/=?^`&#123;&#124;&#125;~-&#93;+&#41;*@&#40;?:&#91;a-z0-9&#93;&#40;?:&#91;a-z0-9-&#93;*&#91;a-z0-9&#93;&#41;*&#41;+\.&#40;?:&#91;a-z&#93;&#123;2,4&#125;&#124;museum&#124;travel&#41;$/i;


That&#8217;s a JavaScript  variable declaration, but the RegExp is valid for Perl and can be quickly translated for other languages.
]]></description>
			<content:encoded><![CDATA[<p>I had to search my desktop files and email history for forty minutes before I turned this up:<br />
<font size="-1"></p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> rfc2822 <span style="color: #339933;">=</span>
<span style="color: #339933;">/^</span><span style="color: #009900;">&#91;</span>\w<span style="color: #339933;">!</span>#$<span style="color: #339933;">%&amp;</span><span style="color: #3366CC;">'*+/=?^`{|}~-]+(?:<span style="color: #000099; font-weight: bold;">\.</span>[<span style="color: #000099; font-weight: bold;">\w</span>!#$%&amp;'</span><span style="color: #339933;">*+/=?^</span>`<span style="color: #009900;">&#123;</span><span style="color: #339933;">|</span><span style="color: #009900;">&#125;</span>~<span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">+</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*@</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span><span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span>z0<span style="color: #339933;">-</span><span style="color: #CC0000;">9</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span><span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span>z0<span style="color: #339933;">-</span><span style="color: #CC0000;">9</span><span style="color: #339933;">-</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span>z0<span style="color: #339933;">-</span><span style="color: #CC0000;">9</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">+</span>\.<span style="color: #009900;">&#40;</span><span style="color: #339933;">?:</span><span style="color: #009900;">&#91;</span>a<span style="color: #339933;">-</span>z<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#123;</span><span style="color: #CC0000;">2</span><span style="color: #339933;">,</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">|</span>museum<span style="color: #339933;">|</span>travel<span style="color: #009900;">&#41;</span>$<span style="color: #339933;">/</span>i<span style="color: #339933;">;</span></pre></div></div>

<p></font><br />
That&#8217;s a JavaScript  variable declaration, but the RegExp is valid for Perl and can be quickly translated for other languages.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pyrolupus.com/2007/11/email-validation-regexp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
