<?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>Dot Net Thoughts &#187; Validation</title>
	<atom:link href="http://www.dotnetthoughts.net/tag/validation/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dotnetthoughts.net</link>
	<description>thoughts about .Net, WPF, Sharepoint, Javascript and more.</description>
	<lastBuildDate>Wed, 01 Sep 2010 09:53:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to validate email addess in Windows Forms</title>
		<link>http://www.dotnetthoughts.net/2009/03/24/how-to-validate-email-addess-in-windows-forms/</link>
		<comments>http://www.dotnetthoughts.net/2009/03/24/how-to-validate-email-addess-in-windows-forms/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 12:53:02 +0000</pubDate>
		<dc:creator>Anuraj P</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[.Net 3.0 / 3.5]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Email Validation]]></category>
		<category><![CDATA[RegEx]]></category>
		<category><![CDATA[Regular Expressions]]></category>
		<category><![CDATA[Validation]]></category>

		<guid isPermaLink="false">http://anuraj.wordpress.com/2009/03/24/how-to-validate-email-addess-in-windows-forms/</guid>
		<description><![CDATA[Today I want to add validation for email address in a Windows Forms application. I searched google, but didn&#8217;t got any simple solution. Then I tried with ASP.Net regex validation control and took the validation expression from it used in RegEx class. Here is code static bool IsValidEmail(string Email) { Regex regex = new Regex(@&#34;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&#34;); [...]]]></description>
			<content:encoded><![CDATA[<p>Today I want to add validation for email address in a Windows Forms application. I searched google, but didn&#8217;t got any simple solution. Then I tried with ASP.Net regex validation control and took the validation expression from it used in RegEx class.</p>
<p>Here is code</p>
<pre class="brush: csharp;">
static bool IsValidEmail(string Email)
{
Regex regex = new Regex(@&quot;\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*&quot;);
return regex.IsMatch(emailAddress);
}
</pre>
<p>Happy Coding [:)]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dotnetthoughts.net/2009/03/24/how-to-validate-email-addess-in-windows-forms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
