I have a start and end marker in html, I would like to replace the html between these markers with some other html. The expression below doesnt seem to work...
var myRegExp = new RegExp("<!-- " + "START IMPORTED HEAD.*?<!-- " + "END IMPORTED HEAD -->", "gi");
sHtmlContent = sHtmlContent.replace(myRegExp, "<!-- " + "INSERT_HEADER -->");
below is an example of the html block which appears in doc.
<!-- START IMPORTED HEAD -->
<style type="text/css">
input[type=button]
{
padding-bottom: 3px;
}
</style>
<!-- END IMPORTED HEAD -->
any ideas would be great thanks