<?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>Albertech.net &#187; preg_match</title>
	<atom:link href="http://albertech.net/tag/preg_match/feed/" rel="self" type="application/rss+xml" />
	<link>http://albertech.net</link>
	<description>Guides and Reviews for WordPress, PHP, MySQL, Apache, CMS Systems, jQuery, and other Technologies</description>
	<lastBuildDate>Tue, 31 Jan 2012 17:31:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Validate MySQL date format in PHP</title>
		<link>http://albertech.net/2009/01/validate-mysql-date-format-in-php/</link>
		<comments>http://albertech.net/2009/01/validate-mysql-date-format-in-php/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 20:32:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[ereg]]></category>
		<category><![CDATA[mysql date validation]]></category>
		<category><![CDATA[php 6]]></category>
		<category><![CDATA[preg_match]]></category>

		<guid isPermaLink="false">http://albertech.net/?p=54</guid>
		<description><![CDATA[Validating the date in MySQL should be done using preg_match since ereg_* functions will be removed in PHP 6.

<strong>More info on PHP 6 changes</strong>: <a href="http://wiki.php.net/todo/php60">http://wiki.php.net/todo/php60</a> It appears there will be a module that you can use to utilize existing ereg expressions, so that'll buy some time to port code from ereg* to preg*.
function isValidDate($date){

if (preg_match ("/^([0-9]{4})-([0-9]{2})-([0-9]{2})$/", $date))
{

return true;
}
else{
return false;
}

}]]></description>
		<wfw:commentRss>http://albertech.net/2009/01/validate-mysql-date-format-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

