title: Check if a string is html or not
body: <p>I have a certain string for which I want to check if it is a html or not. I am using regex for the same but not getting the proper result.</p>
  
  <p>I validated my regex and it works fine <a href="http://tools.netshiftmedia.com/regexlibrary/#">here</a>.<br/></p>
  
  <pre><code>var htmlRegex = new RegExp("&lt;([A-Za-z][A-Za-z0-9]*)\b[^&gt;]*&gt;(.*?)&lt;/\1&gt;");
  return htmlRegex.test(testString);
  </code></pre>
  
  <p>Here's the fiddle but the regex isn't running in there. <a href="http://jsfiddle.net/wFWtc/">http://jsfiddle.net/wFWtc/</a></p>
  
  <p>On my machine, the code runs fine but I get a false instead of true as the result.
  What am missing here?</p>