My very first post here :) I know my way around vb and js but I'm lost with regular expressions.. Anyways I have my function below, and my problem is the function changes all words into links... even the ones inside html markups like <a href, <img, etc.

What do I need to change on the RegExp to fix that?

Thanks so much!

Code:
function linkWord(){
  var y = document.getElementById("main").getElementsByTagName("div");
...