<?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>arkinEx Codex &#187; regex</title>
	<atom:link href="http://www.arkinex.com/contains/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.arkinex.com</link>
	<description>the place where all my code can be viewed</description>
	<lastBuildDate>Wed, 04 Nov 2009 20:39:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Using Regular Expressions in MySQL Queries</title>
		<link>http://www.arkinex.com/regular-expressions/89/using-regular-expressions-in-mysql-queries/</link>
		<comments>http://www.arkinex.com/regular-expressions/89/using-regular-expressions-in-mysql-queries/#comments</comments>
		<pubDate>Wed, 20 May 2009 13:38:06 +0000</pubDate>
		<dc:creator>arkin</dc:creator>
				<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[query]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.arkinex.com/?p=89</guid>
		<description><![CDATA[Here is an example of how you would select data based on a regular expression. SELECT phone FROM table WHERE phone REGEX '^[0-9 ]{11,14}$' = 0 LIMIT 100 The above would show all the phone numbers that are not between 11 and 14 numbers and spaces. SELECT phone FROM table WHERE phone REGEX '^[0-9 ]{11,14}$' [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an example of how you would select data based on a regular expression.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> phone <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #990099; font-weight: bold;">WHERE</span> phone REGEX <span style="color: #008000;">'^[0-9 ]{11,14}$'</span> <span style="color: #CC0099;">=</span> <span style="color: #008080;">0</span> <span style="color: #990099; font-weight: bold;">LIMIT</span> <span style="color: #008080;">100</span></pre></div></div>

<p>The above would show all the phone numbers that <strong><span style="color: #ff0000;">are not</span></strong> between 11 and 14 numbers and spaces.</p>

<div class="wp_syntax"><div class="code"><pre class="mysql" style="font-family:monospace;"><span style="color: #990099; font-weight: bold;">SELECT</span> phone <span style="color: #990099; font-weight: bold;">FROM</span> <span style="color: #990099; font-weight: bold;">table</span> <span style="color: #990099; font-weight: bold;">WHERE</span> phone REGEX <span style="color: #008000;">'^[0-9 ]{11,14}$'</span> <span style="color: #990099; font-weight: bold;">LIMIT</span> <span style="color: #008080;">100</span></pre></div></div>

<p>The above would show all the phone numbers that<strong><span style="color: #99cc00;"> are</span></strong> between 11 and 14 numbers and spaces.</p>
<p>I hope this quick guide has helped.<br />
Any questions, feel free to ask.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arkinex.com/regular-expressions/89/using-regular-expressions-in-mysql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UK Postcode Regular Expression</title>
		<link>http://www.arkinex.com/regular-expressions/87/uk-postcode-regular-expression/</link>
		<comments>http://www.arkinex.com/regular-expressions/87/uk-postcode-regular-expression/#comments</comments>
		<pubDate>Wed, 20 May 2009 13:19:27 +0000</pubDate>
		<dc:creator>arkin</dc:creator>
				<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[postcode]]></category>
		<category><![CDATA[regex]]></category>

		<guid isPermaLink="false">http://www.arkinex.com/?p=87</guid>
		<description><![CDATA[Here is a UK postcode matching regular expression. I built it using a database of all the UK postcodes, so it does work for the strange ones. This regular expression will match the first part: ^[A-Z]{1,2}[0-9]{1,2}[A-Z]?$ It will allow: B1, LN8, EC2M. It will not allow: 123, 1LL, N123. This regular expression should match the [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a UK postcode matching regular expression. I built it using a database of all the UK postcodes, so it does work for the strange ones.</p>
<p>This regular expression will match the first part:</p>
<pre>^[A-Z]{1,2}[0-9]{1,2}[A-Z]?$</pre>
<p><span id="more-87"></span></p>
<p>It will allow:<span style="color: #99cc00;"> B1, LN8, EC2M</span>.<br />
It will not allow: <span style="color: red;">123, 1LL, N123</span>.</p>
<p>This regular expression should match the entire postcode:</p>
<pre>^[A-Z]{1,2}[0-9]{1,2}[A-Z]? [0-9]{1,2}[A-Z]{1,3}$</pre>
<p>It will allow:<span style="color: #99cc00;"> B1 7AB, LN8 12AR, EC2M 9CD</span>.<br />
It will not allow: <span style="color: red;">123 123, 1LL 123, N123 ASD</span>.</p>
<p>Hope you find these as useful as I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.arkinex.com/regular-expressions/87/uk-postcode-regular-expression/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
