<?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>Zemoon Blog by Vlatko Zdrale &#187; RegEx</title>
	<atom:link href="http://blog.zemoon.com/category/regex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zemoon.com</link>
	<description>Web developing Tips&#038;Tricks by Vlatko Zdrale</description>
	<lastBuildDate>Wed, 31 Mar 2010 22:54:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Useful regular expressions</title>
		<link>http://blog.zemoon.com/useful-regular-expressions/</link>
		<comments>http://blog.zemoon.com/useful-regular-expressions/#comments</comments>
		<pubDate>Mon, 24 Mar 2008 23:42:39 +0000</pubDate>
		<dc:creator>Vlatko Zdrale</dc:creator>
				<category><![CDATA[RegEx]]></category>
		<category><![CDATA[Regular Expressions]]></category>

		<guid isPermaLink="false">http://blog.zemoon.com/?p=51</guid>
		<description><![CDATA[Phone Numbers:
(999) 999-9999
999-999-9999
999.999.9999

[\(.]?[2-9]\d\d[\).]?[ -]?[2-9]\d\d[-.]\d{4}


USA ZIP Codes
12345
12345-1234

\d{5}(-\d{4})?



Canadian postal codes
A1B 2C3

[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d



UK postal codes
A12 3BC

[A-Z]{1,2}\d[A-Z\d]? \d[ABD-HJLNP-UW-Z]{2}



US Social Security Number
123-45-6789

\d{3}-\d{2}-\d{4}



IP Address
123.234.123.234

(((\d{1,2})&#124;(1\d{2})&#124;(2[0-4]\d)&#124;(25[0-5]))\.){3}((\d{1,2})&#124;(1\d{2})&#124;(2[0-4]\d)&#124;(25[0-5]))



URL
http://www.zemoon.comhttp://localhost:80

https?://[-\w.]+(:\d+)?(/([\w/_.]*)?)?

Complete URL
http://www.zemoon.com/index.htm
http://blog.zemoon.com/index.php?p=1

https?://(\w*:\w*@)?[-\w.]+(:\d+)?(/([\w/_.]*(\?\S+)?)?)?



Email Address
someone@something.com

(\w+\.)*\w+@(\w+\.)+[A-Za-z]+



HTML Comments
&#60;!&#8211; This is comment &#8211;&#62;





C style comments

//.*



Credit card numbers
Mastercard

5[1-5]\d{14}

Visa

4\d{12}(\d{3})?

AmericanExpress

3[47]\d{13}

Discovery

6011\d{14}

Diners

(30[0-5]&#124;36\d&#124;38\d)\d{11}

All credit cards

(5[1-5]\d{14})&#124;(4\d{12}(\d{3})?)&#124;(3[47]\d{13})&#124;(6011\d{14})&#124;((30[0-5]&#124;36\d&#124;38\d)\d{11})

]]></description>
		<wfw:commentRss>http://blog.zemoon.com/useful-regular-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.194 seconds -->
