How to extract email addresses from a list?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7098581/how-to-parse-trim-email-addresses-from-text">How to parse/trim email addresses from text</a>  </p>
</blockquote>



<p>How can I extract email address from a list of names and email addresses?</p>

<p>Example input:</p>

<pre><code>"a1 b.d"&lt;a1@test.com&gt;,
&lt;a2@test.com&gt;,
"a3 b.d"&lt;a3@test.com&gt; ,
a4@test.com ,
</code></pre>

<p>Output :</p>

<pre><code>a1@test.com,
a2@test.com,
a3@test.com,
a4@test.com,
</code></pre>
