title: RegEx expression to find a href links and add NoFollow to them
body: <p>I am trying to write a RegEx rule to find all a href HTML links on my webpage and add a 'rel="nofollow"' to them.</p>
  
  <p>However, I have a list of URLs that must be excluded (for exmaple, ANY (wildcards) internal link (eg. pokerdiy.com) - so that any internal link that has my domain name in is excluded from this. I want to be able to specify exact URLs in the exclude list too - for example - <a href="http://www.example.com/link.aspx" rel="nofollow noreferrer">http://www.example.com/link.aspx</a>)</p>
  
  <p>Here is what I have so far which is not working:</p>
  
  <p>(]+)(href="http://.*?(?!(pokerdiy))[^>]+>) </p>
  
  <p>If you need more background/info you can see the full thread and requirements here (skip the top part to get to the meat):
  <a href="http://www.snapsis.com/Support/tabid/601/aff/9/aft/13117/afv/topic/afpgj/1/Default.aspx#14737" rel="nofollow noreferrer">http://www.snapsis.com/Support/tabid/601/aff/9/aft/13117/afv/topic/afpgj/1/Default.aspx#14737</a></p>