title: How to loop over multiple filtered regex strings
body: <p>I do not know how to better track down the question. What I want to do is to look for every e-mail-address matching my <code>regEx</code> in different <code>div.test</code>, to create <code>&lt;a href="mailto:"&gt;</code> links. </p>
  
  <p>This does work, but if there are multiple mail addresses inside one div, only the first one gets highlighted. Whats the problem? </p>
  
  <pre><code>var regEx = /(\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)/;
  
  $(".test").filter(function() {
      return $(this).html().match(regEx);
  }).each(function() {
      $(this).html($(this).html().replace(regEx, "&lt;a href=\"mailto:$1\"&gt;$1&lt;/a&gt;"));
  });
  </code></pre>
  
  <p><a href="http://jsbin.com/sazegipufi/1/edit?html,js,output" rel="nofollow noreferrer"><strong>JSBIN</strong></a></p>