title: Extracting Names and Email address from String with regex
body: <p>I have been trying to extract the names and email addresses from the following String that consists of multiple lines through regex in Java:</p>
  
  <pre><code>From: Kane Smith &lt;Kane@smith.com&gt;
  To: John Smith &lt;john@smith.com&gt;, Janes Smith
      &lt;jane@smith.org&gt;, Tom Barter &lt;tom@test.co.uk&gt;, Other
      Weird @#$@&lt;&gt;#^Names &lt;other@names.me&gt;, 
      Long Long Long Long Name &lt;longlong@name.com&gt;
  Date: Tue, 25 Oct 2011 15:45:59 +0000
  </code></pre>
  
  <p>I tried this regex: <code>To:\s?(([.*]+)\s*&lt;([\w\d@\.]*)&gt;,(\s|\n)*)+</code>
  But it doesn't work.</p>
  
  <p>My intention is to extract each of the names and email addresses and put each name its email address together into groups. What I have done however, seems to work only when there is one single name and address. What should my regex be to do this?</p>