<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Validating data using Regular Expressions</title>
	<link>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Tue, 06 Jan 2009 12:05:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Ryan Swanson</title>
		<link>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-16269</link>
		<author>Ryan Swanson</author>
		<pubDate>Sun, 19 Oct 2008 04:43:20 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-16269</guid>
		<description>Hi Peter,

I am a frequent visitor to your blog and recently came across this article on Validating data using Regular Expressions.  For a while now, I have been working on a sophisticated regular expression application and was just able to publish it this past week.  Considering your interest and expertise with Flex and regular expressions, I thought you might be interested in it.

The app is called the Flex 3 Regular Expression Explorer and can be found at my blog below.

http://blog.ryanswanson.com/2008/10/introducing-flex-3-regular-expression.html

The application is similar to the Flex Component and Style Explorers created by Adobe, but I have also added a collaborative community section where people can post their own regular expression examples as well as a full-feature help panel to get novices started with the technology.

Hope you like it!

Cheers,
Ryan

p.s.  Considering your obvious abilities with Flex and regular expressions, I would be very grateful if you were a contributor to the Regular Expression Explorer community!  The more we work together, the more we all profit. :)</description>
		<content:encoded><![CDATA[<p>Hi Peter,</p>
<p>I am a frequent visitor to your blog and recently came across this article on Validating data using Regular Expressions.  For a while now, I have been working on a sophisticated regular expression application and was just able to publish it this past week.  Considering your interest and expertise with Flex and regular expressions, I thought you might be interested in it.</p>
<p>The app is called the Flex 3 Regular Expression Explorer and can be found at my blog below.</p>
<p><a href="http://blog.ryanswanson.com/2008/10/introducing-flex-3-regular-expression.html" rel="nofollow">http://blog.ryanswanson.com/2008/10/introducing-flex-3-regular-expression.html</a></p>
<p>The application is similar to the Flex Component and Style Explorers created by Adobe, but I have also added a collaborative community section where people can post their own regular expression examples as well as a full-feature help panel to get novices started with the technology.</p>
<p>Hope you like it!</p>
<p>Cheers,<br />
Ryan</p>
<p>p.s.  Considering your obvious abilities with Flex and regular expressions, I would be very grateful if you were a contributor to the Regular Expression Explorer community!  The more we work together, the more we all profit. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-623</link>
		<author>peterd</author>
		<pubDate>Wed, 29 Aug 2007 16:34:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-623</guid>
		<description>For more information on POSIX regular expressions, check out the following URL:

http://www.dc.turkuamk.fi/docs/gnu/rx/rx_3.html

The link also mentions how you can use inverted character classes such as the following:

&lt;pre class="code"&gt;
[^[:space:]] - all non-whitespace characters
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>For more information on POSIX regular expressions, check out the following URL:</p>
<p><a href="http://www.dc.turkuamk.fi/docs/gnu/rx/rx_3.html" rel="nofollow">http://www.dc.turkuamk.fi/docs/gnu/rx/rx_3.html</a></p>
<p>The link also mentions how you can use inverted character classes such as the following:</p>
<pre class="code">
[^[:space:]] - all non-whitespace characters
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-604</link>
		<author>peterd</author>
		<pubDate>Wed, 29 Aug 2007 05:15:32 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-604</guid>
		<description>For more information on the fascinating Canadian Postal code format, check out:
&lt;u&gt;http://www.infinitegravity.ca/postalcodeformat.htm&lt;/u&gt;
&lt;u&gt;http://en.wikipedia.org/wiki/Canadian_postal_code&lt;/u&gt;
&lt;u&gt;http://www.canadapost.ca/cpc2/addrm/hh/doc/faq-e.asp&lt;/u&gt;

According to Ben Forta's "Regular Expressions in 10 Minutes" book (First edition, page 121), the following regular expression should work for Canadian postal codes:
&lt;blockquote&gt;
&lt;code&gt;[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d&lt;/code&gt;
&lt;/blockquote&gt;

Note that the D, F, I, O, Q, U, and Z characters are omited from the first allowed character range, but allowable in alphabetic later ranges.

Peter</description>
		<content:encoded><![CDATA[<p>For more information on the fascinating Canadian Postal code format, check out:<br />
<u><a href="http://www.infinitegravity.ca/postalcodeformat.htm" rel="nofollow">http://www.infinitegravity.ca/postalcodeformat.htm</a></u><br />
<u><a href="http://en.wikipedia.org/wiki/Canadian_postal_code" rel="nofollow">http://en.wikipedia.org/wiki/Canadian_postal_code</a></u><br />
<u><a href="http://www.canadapost.ca/cpc2/addrm/hh/doc/faq-e.asp" rel="nofollow">http://www.canadapost.ca/cpc2/addrm/hh/doc/faq-e.asp</a></u></p>
<p>According to Ben Forta&#8217;s &#8220;Regular Expressions in 10 Minutes&#8221; book (First edition, page 121), the following regular expression should work for Canadian postal codes:</p>
<blockquote><p>
<code>[ABCEGHJKLMNPRSTVXY]\d[A-Z] \d[A-Z]\d</code>
</p></blockquote>
<p>Note that the D, F, I, O, Q, U, and Z characters are omited from the first allowed character range, but allowable in alphabetic later ranges.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-404</link>
		<author>peterd</author>
		<pubDate>Thu, 23 Aug 2007 17:11:45 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-404</guid>
		<description>Peter,

Thanks for the tip/clarification! Flex (or more accurately Flash Player 9) does allow POSIX classes, as it turns out! I updated the entry above to show the POSIX style and admit to my own ignorance of the Canadian Postal system.

Peter</description>
		<content:encoded><![CDATA[<p>Peter,</p>
<p>Thanks for the tip/clarification! Flex (or more accurately Flash Player 9) does allow POSIX classes, as it turns out! I updated the entry above to show the POSIX style and admit to my own ignorance of the Canadian Postal system.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter J. Farrell</title>
		<link>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-401</link>
		<author>Peter J. Farrell</author>
		<pubDate>Thu, 23 Aug 2007 16:31:49 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2007/08/22/validating-data-using-regular-expressions/#comment-401</guid>
		<description>FYI, Canada Post does not use the letters D, F, I, O, Q, and U in postal codes as they are too similar to other letters or numbers.  This regex restricts even more:

^[A-CEG-NPR-TVXY][[:digit:]][A-CEG-NPR-TVW-Z]( &#124;-)?[[:digit:]][A-CEG-NPR-TVW-Z][[:digit:]]$

The above regex is more CF specific, but easy to adapt. I'm not sure if Flex allow posix classes.</description>
		<content:encoded><![CDATA[<p>FYI, Canada Post does not use the letters D, F, I, O, Q, and U in postal codes as they are too similar to other letters or numbers.  This regex restricts even more:</p>
<p>^[A-CEG-NPR-TVXY][[:digit:]][A-CEG-NPR-TVW-Z]( |-)?[[:digit:]][A-CEG-NPR-TVW-Z][[:digit:]]$</p>
<p>The above regex is more CF specific, but easy to adapt. I&#8217;m not sure if Flex allow posix classes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
