<?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: USA&#8217;s phone number validation using Regular expression in PHP</title>
	<atom:link href="http://roshanbh.com.np/2008/02/phone-number-validation-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Tue, 16 Mar 2010 10:21:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Toronto Post</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-4684</link>
		<dc:creator>Toronto Post</dc:creator>
		<pubDate>Tue, 13 Oct 2009 17:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-4684</guid>
		<description>very helpful thank you for sharing</description>
		<content:encoded><![CDATA[<p>very helpful thank you for sharing</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Montana Flynn</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-4584</link>
		<dc:creator>Montana Flynn</dc:creator>
		<pubDate>Tue, 15 Sep 2009 19:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-4584</guid>
		<description>Thanks for you help,  I have a web form and get spammers putting 12345 as their # all the time!   How would I incorporate this into a standard php contact form?   Thanks for you time and the script!</description>
		<content:encoded><![CDATA[<p>Thanks for you help,  I have a web form and get spammers putting 12345 as their # all the time!   How would I incorporate this into a standard php contact form?   Thanks for you time and the script!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrLami</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-4003</link>
		<dc:creator>mrLami</dc:creator>
		<pubDate>Thu, 21 May 2009 21:32:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-4003</guid>
		<description>It&#039;s possible things like what you mention might change in the future steve :-)</description>
		<content:encoded><![CDATA[<p>It&#8217;s possible things like what you mention might change in the future steve <img src='http://roshanbh.com.np/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-3686</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 20 Mar 2009 20:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-3686</guid>
		<description>This is incorrect.

The 4 digit (1 after area code) can never start with a 0 or a 1. It can be 2-9 only.

Valid: 5552221234
Invalid: 5551231234

Thus the correct regexp is:
[2-9]{1}[0-9]{2}[2-9]{1}[0-9]{2}[0-9]{4}</description>
		<content:encoded><![CDATA[<p>This is incorrect.</p>
<p>The 4 digit (1 after area code) can never start with a 0 or a 1. It can be 2-9 only.</p>
<p>Valid: 5552221234<br />
Invalid: 5551231234</p>
<p>Thus the correct regexp is:<br />
[2-9]{1}[0-9]{2}[2-9]{1}[0-9]{2}[0-9]{4}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hosting</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-1620</link>
		<dc:creator>hosting</dc:creator>
		<pubDate>Tue, 29 Jul 2008 20:15:44 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-1620</guid>
		<description>I tried this code in my order form on the site and it works perfectly, just what I needed.  

Steve</description>
		<content:encoded><![CDATA[<p>I tried this code in my order form on the site and it works perfectly, just what I needed.  </p>
<p>Steve</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: g.j.srinivas</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-346</link>
		<dc:creator>g.j.srinivas</dc:creator>
		<pubDate>Thu, 14 Feb 2008 09:19:20 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-346</guid>
		<description>thank uuuuuuuuuuuuuuuuuuuuuuuu!</description>
		<content:encoded><![CDATA[<p>thank uuuuuuuuuuuuuuuuuuuuuuuu!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-330</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sat, 09 Feb 2008 20:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-330</guid>
		<description>Actually, I don&#039;t think the exchange (middle 3) can start with a 1 or 0 either</description>
		<content:encoded><![CDATA[<p>Actually, I don&#8217;t think the exchange (middle 3) can start with a 1 or 0 either</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PHP Coding School &#187; Blog Archive &#187; php tips [2008-02-08 10:47:10]</title>
		<link>http://roshanbh.com.np/2008/02/phone-number-validation-php.html/comment-page-1#comment-326</link>
		<dc:creator>PHP Coding School &#187; Blog Archive &#187; php tips [2008-02-08 10:47:10]</dc:creator>
		<pubDate>Fri, 08 Feb 2008 10:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/02/phone-number-validation-php-regular-expression.html#comment-326</guid>
		<description>[...]  North American phone number format validation using Regular &#8230;  By Roshan  Last day i saw that one of my friend looking for the validation script in PHP which post the phone no (number) of USA from the text box and wanted to validate it from PHP in the following format.   Roshan Bhattarai&#8217;s Blog - PHP&#8230; - http://roshanbh.com.np [...]</description>
		<content:encoded><![CDATA[<p>[...]  North American phone number format validation using Regular &#8230;  By Roshan  Last day i saw that one of my friend looking for the validation script in PHP which post the phone no (number) of USA from the text box and wanted to validate it from PHP in the following format.   Roshan Bhattarai&#8217;s Blog &#8211; PHP&#8230; &#8211; <a href="http://roshanbh.com.np" rel="nofollow">http://roshanbh.com.np</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
