<?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: Validate Phone Numbers: A Detailed Guide</title>
	<atom:link href="http://blog.stevenlevithan.com/archives/validate-phone-number/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.stevenlevithan.com/archives/validate-phone-number</link>
	<description>A JavaScript and regular expression centric blog</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:18:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: e-commerce online store web design</title>
		<link>http://blog.stevenlevithan.com/archives/validate-phone-number/comment-page-1#comment-185723</link>
		<dc:creator>e-commerce online store web design</dc:creator>
		<pubDate>Sun, 05 Feb 2012 13:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=275#comment-185723</guid>
		<description>I am using C# phone # validation. Its great. I do understand clearly. thanks</description>
		<content:encoded><![CDATA[<p>I am using C# phone # validation. Its great. I do understand clearly. thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geld anlegen</title>
		<link>http://blog.stevenlevithan.com/archives/validate-phone-number/comment-page-1#comment-183301</link>
		<dc:creator>Geld anlegen</dc:creator>
		<pubDate>Mon, 30 Jan 2012 11:49:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=275#comment-183301</guid>
		<description>if(!document.phone.value.match(/^[\d\/\\\s+-]+$/))

for characters allowed: 0-9, -, /, \, +</description>
		<content:encoded><![CDATA[<p>if(!document.phone.value.match(/^[\d\/\\\s+-]+$/))</p>
<p>for characters allowed: 0-9, -, /, \, +</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://blog.stevenlevithan.com/archives/validate-phone-number/comment-page-1#comment-169853</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Wed, 28 Dec 2011 23:17:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=275#comment-169853</guid>
		<description>This works awesome for 10 digit phone numbers:

var regexObj = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;

if (regexObj.test(subjectString)) {
    var formattedPhoneNumber =
        subjectString.replace(regexObj, &quot;($1) $2-$3&quot;);
}

What needs to change to allow an extension?

For example, I&#039;d like it to format the phone number to:

(123)456-7890 x123

Thanks, in advance for this!</description>
		<content:encoded><![CDATA[<p>This works awesome for 10 digit phone numbers:</p>
<p>var regexObj = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;</p>
<p>if (regexObj.test(subjectString)) {<br />
    var formattedPhoneNumber =<br />
        subjectString.replace(regexObj, &#8220;($1) $2-$3&#8243;);<br />
}</p>
<p>What needs to change to allow an extension?</p>
<p>For example, I&#8217;d like it to format the phone number to:</p>
<p>(123)456-7890 x123</p>
<p>Thanks, in advance for this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jorge</title>
		<link>http://blog.stevenlevithan.com/archives/validate-phone-number/comment-page-1#comment-153375</link>
		<dc:creator>jorge</dc:creator>
		<pubDate>Thu, 10 Nov 2011 09:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=275#comment-153375</guid>
		<description>this site is very helpful.

i&#039;m wondering, given a phone number like this: &quot;+1234567890&quot;; is there a mathematical way to determine the country and area codes? --- without looking at the code tables.

what if there exist country codes &quot;1&quot; , 12&quot; and &quot;123&quot; ? how do we figure this out? 

Thanks.</description>
		<content:encoded><![CDATA[<p>this site is very helpful.</p>
<p>i&#8217;m wondering, given a phone number like this: &#8220;+1234567890&#8243;; is there a mathematical way to determine the country and area codes? &#8212; without looking at the code tables.</p>
<p>what if there exist country codes &#8220;1&#8243; , 12&#8243; and &#8220;123&#8243; ? how do we figure this out? </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: validate international phone numbers &#171; Jason&#039;s Blog</title>
		<link>http://blog.stevenlevithan.com/archives/validate-phone-number/comment-page-1#comment-152319</link>
		<dc:creator>validate international phone numbers &#171; Jason&#039;s Blog</dc:creator>
		<pubDate>Mon, 07 Nov 2011 06:43:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=275#comment-152319</guid>
		<description>[...] http://blog.stevenlevithan.com/archives/validate-phone-number#r4-3 Like this:LikeBe the first to like this post. [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://blog.stevenlevithan.com/archives/validate-phone-number#r4-3" rel="nofollow">http://blog.stevenlevithan.com/archives/validate-phone-number#r4-3</a> Like this:LikeBe the first to like this post. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

