title: Regex capture hyperlink
body: <p>I have a regex:</p>
  <pre class="lang-js prettyprint-override"><code>/(\b(((?&lt;alias&gt;.*)\s*:\s*)){0,1}(?&lt;link&gt;(https?|ftp|file):\/\/[-A-Z0-9+&amp;@#\/%?=~_|!:,.;]*[-A-Z0-9+&amp;@#\/%=~_|]))/ig;
  </code></pre>
  <p>Now, I am trying to match the text - <strong>Instructions:<a href="http://google.com" rel="nofollow noreferrer">http://google.com</a> microsoft: <a href="http://microsoft.com" rel="nofollow noreferrer">http://microsoft.com</a></strong>, using the above regex such that <strong>Instructions:<a href="http://google.com" rel="nofollow noreferrer">http://google.com</a></strong> should be match 1 and <strong>microsoft: <a href="http://microsoft.com" rel="nofollow noreferrer">http://microsoft.com</a></strong> should be match 2.</p>
  <p><em>Instructions</em> and <em>microsoft</em> should be captured as alias.
  But it is not working and matching the entire string Instructions:<a href="http://google.com" rel="nofollow noreferrer">http://google.com</a> microsoft: <a href="http://microsoft.com" rel="nofollow noreferrer">http://microsoft.com</a> as match 1.</p>
  <p>See sample <a href="https://jsfiddle.net/tc1vbkw2" rel="nofollow noreferrer">here</a>.</p>