<?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"
	>
<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>
	<pubDate>Thu, 20 Nov 2008 07:10:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Sai</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-20824</link>
		<dc:creator>Sai</dc:creator>
		<pubDate>Fri, 08 Feb 2008 18:46:14 +0000</pubDate>
		<guid isPermaLink="false">http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-20824</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-16091</link>
		<dc:creator>saurav</dc:creator>
		<pubDate>Fri, 12 Oct 2007 08:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-16091</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-13466</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Wed, 04 Jul 2007 13:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-13466</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="http://devsushi.com/2006/09/11/disabling-javascript/" rel="nofollow"&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&gt;&lt;code&gt;' handle phone variations
If phone.Contains("(") Then
  ' extract digits
ElseIf phone.Contains("-") Then
  ' extract digits
...
End If&lt;/code&gt;&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://devsushi.com/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><code>' handle phone variations
If phone.Contains("(") Then
  ' extract digits
ElseIf phone.Contains("-") Then
  ' extract digits
...
End If</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kathy</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-13417</link>
		<dc:creator>Kathy</dc:creator>
		<pubDate>Mon, 02 Jul 2007 18:05:18 +0000</pubDate>
		<guid isPermaLink="false">http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-13417</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 "onBlur"? 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-5398</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Sat, 21 Apr 2007 06:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-5398</guid>
		<description>Wordpress was stripping out my backslashes! I'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-5274</link>
		<dc:creator>navi</dc:creator>
		<pubDate>Tue, 17 Apr 2007 06:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-5274</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>
	<item>
		<title>By: kiran</title>
		<link>http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-454</link>
		<dc:creator>kiran</dc:creator>
		<pubDate>Thu, 21 Dec 2006 09:19:34 +0000</pubDate>
		<guid isPermaLink="false">http://devsushi.com/2006/11/28/aspnet-regular-expressions/#comment-454</guid>
		<description>Your site so helpful for us.</description>
		<content:encoded><![CDATA[<p>Your site so helpful for us.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
