<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Commonly Used Regular Expressions</title>
	<atom:link href="http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/</link>
	<description>Christian Webmaster Resources</description>
	<lastBuildDate>Fri, 12 Mar 2010 08:11:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Micha? Bachowski</title>
		<link>http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/comment-page-1/#comment-44</link>
		<dc:creator>Micha? Bachowski</dc:creator>
		<pubDate>Fri, 13 Jun 2008 08:41:24 +0000</pubDate>
		<guid isPermaLink="false">http://smseserver.com/blog/2007/12/11/commonly-used-regular-expressions/#comment-44</guid>
		<description>Hi!

As butters said - use preg_match()

To validate date I prefer using strtotime():
$valid = strtotime($val)!==false;

strtotime() function handles much more date variants.

Regards.</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>As butters said &#8211; use preg_match()</p>
<p>To validate date I prefer using strtotime():<br />
$valid = strtotime($val)!==false;</p>
<p>strtotime() function handles much more date variants.</p>
<p>Regards.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrea</title>
		<link>http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/comment-page-1/#comment-41</link>
		<dc:creator>Andrea</dc:creator>
		<pubDate>Thu, 12 Jun 2008 15:40:07 +0000</pubDate>
		<guid isPermaLink="false">http://smseserver.com/blog/2007/12/11/commonly-used-regular-expressions/#comment-41</guid>
		<description>Nice but this will reject both some valid email addresses (e.g. containing a single quote for an apostrophe: I had to ask the email admins at work to change my email address just because of all the web sites with similar validation rules that kept refusing it) and some valid URLs (e.g. plenty of top level domains are missing).
A correct email address validating regular expression would need a VERY long regular expression, so you need to decide whether you prefer it too tolerant or too restrictive, and in most applications it is the tolerant one that you&#039;ll want.</description>
		<content:encoded><![CDATA[<p>Nice but this will reject both some valid email addresses (e.g. containing a single quote for an apostrophe: I had to ask the email admins at work to change my email address just because of all the web sites with similar validation rules that kept refusing it) and some valid URLs (e.g. plenty of top level domains are missing).<br />
A correct email address validating regular expression would need a VERY long regular expression, so you need to decide whether you prefer it too tolerant or too restrictive, and in most applications it is the tolerant one that you&#8217;ll want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/comment-page-1/#comment-40</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 12 Jun 2008 15:12:43 +0000</pubDate>
		<guid isPermaLink="false">http://smseserver.com/blog/2007/12/11/commonly-used-regular-expressions/#comment-40</guid>
		<description>Thanks. Very useful.</description>
		<content:encoded><![CDATA[<p>Thanks. Very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/comment-page-1/#comment-38</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Thu, 12 Jun 2008 13:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://smseserver.com/blog/2007/12/11/commonly-used-regular-expressions/#comment-38</guid>
		<description>Looks like a useful set of expressions.  Good work.</description>
		<content:encoded><![CDATA[<p>Looks like a useful set of expressions.  Good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jakyra</title>
		<link>http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/comment-page-1/#comment-37</link>
		<dc:creator>jakyra</dc:creator>
		<pubDate>Thu, 12 Jun 2008 13:39:38 +0000</pubDate>
		<guid isPermaLink="false">http://smseserver.com/blog/2007/12/11/commonly-used-regular-expressions/#comment-37</guid>
		<description>ISBNs are best tested with math http://www.isbn.org/standards/home/isbn/international/html/usm4.htm</description>
		<content:encoded><![CDATA[<p>ISBNs are best tested with math <a href="http://www.isbn.org/standards/home/isbn/international/html/usm4.htm" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.isbn.org/standards/home/isbn/international/html/usm4.htm?referer=');">http://www.isbn.org/standards/home/isbn/international/html/usm4.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: butters</title>
		<link>http://www.webmastersbydesign.com/2007/12/11/commonly-used-regular-expressions/comment-page-1/#comment-36</link>
		<dc:creator>butters</dc:creator>
		<pubDate>Thu, 12 Jun 2008 12:25:47 +0000</pubDate>
		<guid isPermaLink="false">http://smseserver.com/blog/2007/12/11/commonly-used-regular-expressions/#comment-36</guid>
		<description>Nice, but your regexp for ips would say that 999.999.999.999 is also valid ;) and preg is much faster most of the time!</description>
		<content:encoded><![CDATA[<p>Nice, but your regexp for ips would say that 999.999.999.999 is also valid <img src='http://www.webmastersbydesign.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  and preg is much faster most of the time!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
