title: Get "Title" attribute from html link using Regex
body: <p>I have the following Regex to match all link tags on a page generated from our custom cms</p>
  
  <pre><code>&lt;a\s+((?:(?:\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?\s*href\s*=\s*(?&lt;url&gt;\w+|"[^"]*"|'[^']*')(?:(?:\s+\w+\s*=\s*)(?:\w+|"[^"]*"|'[^']*'))*?)&gt;.+?&lt;/a&gt;
  </code></pre>
  
  <p>We are using c# to loop through all matches of this and add an onclick event to each link (for tracking software) before rendering the page content.
  I need to parse the link and add a parameter to the onclick function which is the "link name".  </p>
  
  <p>I was going to modify the regex to get the following subgroups</p>
  
  <ul>
  <li>The title attribute of the link</li>
  <li>If the link contains an image tag get
  the alt text of the image</li>
  <li>The text of the link</li>
  </ul>
  
  <p>I can then check the match of each subgroup to aqquire the relevant name of the link.</p>
  
  <p>How would I modify the above regex to do this or could I achieve the same think using c# code?</p>