<?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: ASP.Net Regular Expressions</title>
	<atom:link href="http://devsushi.com/2006/11/28/aspnet-regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/</link>
	<description>Discussion on Development in Several Different Flavours</description>
	<lastBuildDate>Fri, 23 Jul 2010 11:05:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: CodeFox</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-368</link>
		<dc:creator>CodeFox</dc:creator>
		<pubDate>Wed, 06 Jan 2010 11:02:51 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-368</guid>
		<description>Nice reference page, thanks!
I hope Hardik has his answer by now, but for other people with the same question, the Australian postcode is one of the easiest regular expressions, as it is simply a 4 digit code. The lowest one I know of is 0800 and the highest is 9999.

The regexp would simply be &quot;\d{4}&quot;
ie; digits exactly of quantity 4.</description>
		<content:encoded><![CDATA[<p>Nice reference page, thanks!<br />
I hope Hardik has his answer by now, but for other people with the same question, the Australian postcode is one of the easiest regular expressions, as it is simply a 4 digit code. The lowest one I know of is 0800 and the highest is 9999.</p>
<p>The regexp would simply be &#8220;\d{4}&#8221;<br />
ie; digits exactly of quantity 4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-55</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 28 Sep 2009 19:56:42 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-55</guid>
		<description>Thank you very much for the multiple format validation of zip code and phone number!</description>
		<content:encoded><![CDATA[<p>Thank you very much for the multiple format validation of zip code and phone number!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hardik</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-53</link>
		<dc:creator>Hardik</dc:creator>
		<pubDate>Fri, 23 Jan 2009 08:31:46 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-53</guid>
		<description>hello
i want to regular expression validation for the Austrilian Postal code</description>
		<content:encoded><![CDATA[<p>hello<br />
i want to regular expression validation for the Austrilian Postal code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mutasem</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-54</link>
		<dc:creator>mutasem</dc:creator>
		<pubDate>Sun, 23 Nov 2008 13:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-54</guid>
		<description>i want a validator for yhe following expression

nnnnnnnnnnnnnn.nnn as a maximum</description>
		<content:encoded><![CDATA[<p>i want a validator for yhe following expression</p>
<p>nnnnnnnnnnnnnn.nnn as a maximum</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sai</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-52</link>
		<dc:creator>Sai</dc:creator>
		<pubDate>Fri, 08 Feb 2008 18:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-52</guid>
		<description>Here is another one for phone number off of the one above

this one can take multiple type of formats
1231231234
123-123-1234
(123)123-1234

^\d{10}$&#124;^\+?1?-?(\(\d{3}\)&#124;\d{3})-?\d{3}-\d{4}$&#124;^\d{3}-d{3}-d{4}$</description>
		<content:encoded><![CDATA[<p>Here is another one for phone number off of the one above</p>
<p>this one can take multiple type of formats<br />
1231231234<br />
123-123-1234<br />
(123)123-1234</p>
<p>^\d{10}$|^\+?1?-?(\(\d{3}\)|\d{3})-?\d{3}-\d{4}$|^\d{3}-d{3}-d{4}$</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saurav</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-51</link>
		<dc:creator>saurav</dc:creator>
		<pubDate>Fri, 12 Oct 2007 08:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-51</guid>
		<description>I want to date vaildation script, for format specify</description>
		<content:encoded><![CDATA[<p>I want to date vaildation script, for format specify</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-49</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 04 Jul 2007 14:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-49</guid>
		<description>&lt;em&gt;onblur&lt;/em&gt; is a JavaScript function and I recommend against using JavaScript for anything that is required to happen. There is no guarantee that the &lt;a href=&quot;http://adamhewgill.com/devsushi/2006/09/11/disabling-javascript/&quot; rel=&quot;nofollow&quot;&gt;JavaScript code will run&lt;/a&gt; in a users browser.

Instead it is best to put the clean-up code in the submit function just before inserting it into the database. You can now be assured that the data will be formatted properly.

An example clean-up algorithm:
&lt;pre class=&quot;brush: vb&quot;&gt;&#039; handle phone variations
If phone.Contains(&quot;(&quot;) Then
  &#039; extract digits
ElseIf phone.Contains(&quot;-&quot;) Then
  &#039; extract digits
...
End If&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p><em>onblur</em> is a JavaScript function and I recommend against using JavaScript for anything that is required to happen. There is no guarantee that the <a href="http://adamhewgill.com/devsushi/2006/09/11/disabling-javascript/" rel="nofollow">JavaScript code will run</a> in a users browser.</p>
<p>Instead it is best to put the clean-up code in the submit function just before inserting it into the database. You can now be assured that the data will be formatted properly.</p>
<p>An example clean-up algorithm:</p>
<pre class="brush: vb">' handle phone variations
If phone.Contains("(") Then
  ' extract digits
ElseIf phone.Contains("-") Then
  ' extract digits
...
End If</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-50</link>
		<dc:creator>Kathy</dc:creator>
		<pubDate>Mon, 02 Jul 2007 18:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-50</guid>
		<description>Do you have examples of the clean-up functions that changes the information into the correct format for storing in the database? Can this be done &quot;onBlur&quot;? I am very new at ASP.Net and have used regular expressions in javascript but am not sure how to reformat data input in ASP.Net.</description>
		<content:encoded><![CDATA[<p>Do you have examples of the clean-up functions that changes the information into the correct format for storing in the database? Can this be done &#8220;onBlur&#8221;? I am very new at ASP.Net and have used regular expressions in javascript but am not sure how to reformat data input in ASP.Net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-48</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sat, 21 Apr 2007 06:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-48</guid>
		<description>Wordpress was stripping out my backslashes! I&#039;ve fixed the problem now, sorry for the inconvenience.</description>
		<content:encoded><![CDATA[<p>WordPress was stripping out my backslashes! I&#8217;ve fixed the problem now, sorry for the inconvenience.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: navi</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/comment-page-1/#comment-47</link>
		<dc:creator>navi</dc:creator>
		<pubDate>Tue, 17 Apr 2007 06:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://adamhewgill.com/devsushi/2006/11/28/aspnet-regular-expressions/#comment-47</guid>
		<description>hello
i want regular expression for username that must take only one space and alphanumerics.other special symbols should not be there.
plz do reply me.ur explanation was gud.
but its not working</description>
		<content:encoded><![CDATA[<p>hello<br />
i want regular expression for username that must take only one space and alphanumerics.other special symbols should not be there.<br />
plz do reply me.ur explanation was gud.<br />
but its not working</p>
]]></content:encoded>
	</item>
</channel>
</rss>
