How do I use the following regular expression with jQuery codes?


document.body.innerHTML = document.body.innerHTML.replace(/\<hr (class="?seperator"?)\s?\/?\>/ig,'<div $1></div>');