title: Regex doesn't capture group well
body: <p>I currently have a regex </p>
  
  <pre><code>/^Newsletter pour (.+)?&lt;?((([^&lt;&gt;()\[\]\.,;:\s@\"]+(\.[^&lt;&gt;()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^&lt;&gt;()[\]\.,;:\s@\"]+\.)+[^&lt;&gt;()[\]\.,;:\s@\"]{2,}))&gt;?$/i
  </code></pre>
  
  <p>I want it to match <code>Newsletter pour ome &lt;ome@yahoo.com&gt;</code> and <code>Newsletter pour ome@yahoo.com</code>.</p>
  
  <p>Now i did something like this regex.exec('Newsletter pour ome@ya.co') and want to detect whether the email is at position 1 or 2 of the array. But the problem is that sometimes the first letter of the email gets put in index 1 and the remaining part gets put in index 2.</p>
  
  <p>Please help. How do i rectify this</p>