<?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>Zeroed and Noughted &#187; RegEx</title>
	<atom:link href="http://zeroedandnoughted.com/category/javascript/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://zeroedandnoughted.com</link>
	<description>0000000000000000000000000000000000</description>
	<lastBuildDate>Fri, 26 Aug 2011 11:12:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Regular Expression to match UK residential telephone numbers</title>
		<link>http://zeroedandnoughted.com/regular-expression-to-match-uk-residential-telephone-numbers/</link>
		<comments>http://zeroedandnoughted.com/regular-expression-to-match-uk-residential-telephone-numbers/#comments</comments>
		<pubDate>Wed, 13 May 2009 16:30:48 +0000</pubDate>
		<dc:creator>booshtukka</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[RegEx]]></category>

		<guid isPermaLink="false">http://www.zeroedandnoughted.com/?p=156</guid>
		<description><![CDATA[A regular expression to match UK residential telephone numbers. It understands the difference between 02 and 01 numbers. It will accept all common formats and internationally formatted numbers. Examples of accepted numbers: 02081234567 0208 123 4567 020 8123 4567 0208 123-4567 +44 208 123 4567 +44 (0) 208 123 4567 01234 567 890 +44 0 [...]]]></description>
			<content:encoded><![CDATA[<p>A regular expression to match <acronym title="United Kingdom">UK</acronym> residential telephone numbers. It understands the difference between 02 and 01 numbers. It will accept all common formats and internationally formatted numbers.</p>
<p>Examples of accepted numbers:</p>
<ul>
<li>02081234567</i>
<li>0208 123 4567</i>
<li>020 8123 4567</i>
<li>0208 123-4567</i>
<li>+44 208 123 4567</i>
<li>+44 (0) 208 123 4567</i>
<li>01234 567 890</i>
<li>+44 0 1234 567-890</i>
<li>07712 123 456</i>
</ul>
<p>Examples of numbers that will not be accepted:</p>
<ul>
<li>020812345678</li>
<li>123456789</li>
<li>07612 123 4567</li>
<li>+33 345 876 1298</li>
</ul>
<p>This is my first <a href="http://regexlib.com/REDetails.aspx?regexp_id=2632">submission</a> to the excellent <a href="http://regexlib.com">regexlib.com</a> regular expression library &#8211; I&#8217;d appreciate if you could <a href="http://regexlib.com/REDetails.aspx?regexp_id=2632">vote for it</a>!</p>
<pre class="brush: jscript; title: ;">/^((\(44\))( )?|(\(\+44\))( )?|(\+44)( )?|(44)( )?)?((0)|(\(0\)))?( )?(((1[0-9]{3})|(7[1-9]{1}[0-9]{2})|(20)( )?[7-8]{1})( )?([0-9]{3}[ -]?[0-9]{3})|(2[0-9]{2}( )?[0-9]{3}[ -]?[0-9]{4}))$/</pre>
<p>Let me know if I&#8217;ve missed anything!</p>
<p><strong>Update:</strong> This has been amended as per comments below, to allow 020 as a prefix for London, 07624 (Isle of Man) and 074xx xxxxxx.</p>
]]></content:encoded>
			<wfw:commentRss>http://zeroedandnoughted.com/regular-expression-to-match-uk-residential-telephone-numbers/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

