title: How do I skip the domain that is already in an anchor tag?
body: <p>The following regular expression <a href="http://www.regexmagic.com/manual/xmppatternurl.html" rel="nofollow">found here</a> matched the below domains just fine, but I don't want it to match a domain that is already in an anchor tag (the last example) Note that this matching will be detecting these cases in sentences of text.</p>
  
  <pre><code>((?: http| https)://)?[.0-9a-z-]+\.[a-z]{2,6}(?::[0-9]{1,5}+)?(?:/[!$'()*+,._a-z-]++){0,9}(?:/[!$'()*+,._a-z-]*)?(?:\?[!$&amp;'()*+,.=_a-z-]*)?
  </code></pre>
  
  <p>Matches this in a sentence or paragraph:</p>
  
  <pre><code>www.domain.com
  domain.com
  this.is.a.special.url.domain.com/hello 
  http://domain.com
  http://www.domain.com
  http://www.domain.com/
  http://www.domain.com/index.html
  http://www.domain.com/index.html?source=library
  </code></pre>
  
  <p>BUT, how do I change the regex to not match the domain that is already in an anchor tag?</p>
  
  <pre><code>&lt;a href="http://www.usertesting.com"&gt;hello&lt;/a&gt;
  </code></pre>