title: Return only one group with OR condition in Regex
body: <p>I have to write a Regex to fetch Email Address from a sentence. I want it to be returned with Group 1 only.</p>
  
  <p>Regex:</p>
  
  <pre><code>\[mailto:(.+)\]|&lt;(.+@.+\..+)&gt;
  </code></pre>
  
  <p>Input String:</p>
  
  <pre><code>Hello my Email Address is &lt;foo@hotmail.com&gt; - Return foo@hotmail.com as Group1.
  Hello my Email Address is [mailto: foo@hotmail.com] - Return foo@hotmail.com as Group2.
  </code></pre>
  
  <p>I want if any of the string matches then it should be returned in Group1.</p>
  
  <p>Is there any way to do this?</p>