I would like to match this regexp in javascript:
com\..*</div>
As you can see I want to have com. and then anything and then </div>.
But in javascript this is not working, it always founds the com/jdksf</div> not the com.fdsfd<div> text.
Any idea why is that?
Edit: My code looks like this:
var patt1=new RegExp("com\..*</div>");
alert(patt1.exec(document.getElementsByTagName("body")[0].innerHTML));