<?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>Candid’s brain &#187; code</title>
	<atom:link href="http://brain.cdauth.de/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://brain.cdauth.de</link>
	<description>Not what happens to me. What concerns me!</description>
	<lastBuildDate>Wed, 07 Jul 2010 00:34:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Validate e-mail address</title>
		<link>http://brain.cdauth.de/2008/05/13/validate-e-mail-address/</link>
		<comments>http://brain.cdauth.de/2008/05/13/validate-e-mail-address/#comments</comments>
		<pubDate>Tue, 13 May 2008 18:56:03 +0000</pubDate>
		<dc:creator>Candid Dauth</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[english]]></category>

		<guid isPermaLink="false">http://brain.cdauth.de/?p=33</guid>
		<description><![CDATA[This PHP code validates an e-mail address according to all rules of the standards I could find:
(preg_match("((?P[-A-Za-z0-9!#\$%&#038;'*+/=?^_`{&#124;}~]&#124;\\\\[\\x00-\\x7f]&#124;[-A-Za-z0-9!#\$%&#038;'*+/=?^_`{&#124;}~]&#124;\\\\[\\x00-\\x7f][-A-Za-z0-9!#\$%&#038;'*+/=?^_`{&#124;}~.]&#124;\\\\[\\x00-\\x7f])*[-A-Za-z0-9!#\$%&#038;'*+/=?^_`{&#124;}~]&#124;\\\\[\\x00-\\x7f]&#124;\"[\\x00-\\x7f]*[\\x00-\\x5b\\x5d-\\x7f]\")@(?P([-a-z0-9]{1,63}\.)*[-a-z0-9]{1,63}))s", $email, $m) &#038;&#038; strlen($m["domain-part"]) ]]></description>
			<content:encoded><![CDATA[<p>This PHP code validates an e-mail address according to all rules of the standards I could find:</p>
<pre>(preg_match("((?P<local-part>[-A-Za-z0-9!#\$%&#038;'*+/=?^_`{|}~]|\\\\[\\x00-\\x7f]|[-A-Za-z0-9!#\$%&#038;'*+/=?^_`{|}~]|\\\\[\\x00-\\x7f][-A-Za-z0-9!#\$%&#038;'*+/=?^_`{|}~.]|\\\\[\\x00-\\x7f])*[-A-Za-z0-9!#\$%&#038;'*+/=?^_`{|}~]|\\\\[\\x00-\\x7f]|\"[\\x00-\\x7f]*[\\x00-\\x5b\\x5d-\\x7f]\")@(?P<domain-part>([-a-z0-9]{1,63}\.)*[-a-z0-9]{1,63}))s", $email, $m) &#038;&#038; strlen($m["domain-part"]) <= 255)</pre>
<p><a href="http://en.wikipedia.org/wiki/E-mail_address">http://en.wikipedia.org/wiki/E-mail_address</a> has been updated, I don’t know if my code really follows all rules, as I have found there some I hadn’t known. Please correct my code if you know it better.</p>
]]></content:encoded>
			<wfw:commentRss>http://brain.cdauth.de/2008/05/13/validate-e-mail-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
