Multiple email validation using regular expression
<p>I have multiple emails as under</p>

<pre><code>foo@foo.com,bar@bar.com,xyz@invalidmail,valid@v.com
</code></pre>

<p>What I am looking for is a list of all valid emails. So the final list will have </p>

<pre><code>foo@foo.com,bar@bar.com,valid@v.com
</code></pre>

<p>One way is that to split the emails by their delimeter(,) and validate. However, I am looking for an approach where it can be taken care at a single point of time.</p>

<p>My approach so far (though not wroking)</p>

<pre><code>public static List&lt;string&gt; ValidateEmail(string email)
{
     List&lt;string&gt; lst = new List&lt;string&gt;();
     String expression = @"(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*([,]+)?)+ ";
     Regex rx = new Regex(expression);          
     lst.Add(????);            
} 
</code></pre>

<p><strong>Invocation:</strong></p>

<pre><code>String email = " foo@foo.com,bar@bar.com,xyz@invalidmail,valid@v.com";
 var result = ValidateEmail(email);
</code></pre>

<p>Thanks</p>
