title: jquery / javascript: regex to replace instances of an html tag
body: <p>I'm trying to take some parsed XML data, search it for instances of the  tag and replace that tag (and anything that may be inside the font tag), and replace it with a simple  tag. </p>
  
  <p>This is how I've been doing my regexes:</p>
  
  <pre><code>var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; //Test against valid email
  console.log('regex: ' + emailReg.test(testString));
  </code></pre>
  
  <p>and so I figured the font regex would be something like this:</p>
  
  <pre><code>var fontReg = /'&lt;'+font+'[^&gt;&lt;]*&gt;|&lt;.'+font+'[^&gt;&lt;]*&gt;','g'/;
  console.log('regex: ' + fontReg.test(testString));
  </code></pre>
  
  <p>but that isn't working. Anyone know a way to do this? Or what I might be doing wrong in the code above?</p>