title: Javascript Regexp - Match string pattern except if string is inside specified tag
body: <p>I am trying to replace all occurences of ???some.text.and.dots??? in a html page to add a link on it. I've built this regexp that does it :</p>
  
  <p>\?\?\?([a-z0-9.]*)\?\?\?</p>
  
  <p>However, I would like to exclude any result that is inside a link : "&lt;a ...&gt; ... MY PATTERN ... &lt;/a&gt;", and I am a little stuck as to how to do that, all my attempts have failed for now.</p>