title: Replace a href with a js function call
body: <p>I want to replace an url in a href with a call of a function that needs to include the url.</p>
  
  <p>example:
  I have the following string:</p>
  
  <pre><code>&lt;a href="www.google.com"&gt;Google&lt;/a&gt;
  some other text
  &lt;a href="www.wikipedia.org"&gt;Wikipedia&lt;/a&gt;
  </code></pre>
  
  <p>I want to get back a string like this:</p>
  
  <pre><code>&lt;a href="javascript:anyFunction('www.google.com');"&gt;Google&lt;/a&gt;
  some other text
  &lt;a href="javascript:anyFunction('www.wikipedia.org')"&gt;Wikipedia&lt;/a&gt;
  </code></pre>
  
  <p>I have tested some ways with RegEx, but I'm not good with RegEx. Does anyone have a solution for my problem?</p>
  
  <p>EDIT:
  Sorry, I forgot to write. I'm building an appcelator application. I can't use jQuery or "document". I think the only way is a RegEx.</p>