Thank you. I mean I want to use regular expression with jQuery, rather than replace regular expression with jQuery manipulation codes. For example: (I know this doesn't work, just showing what I mean)
$('body').html($('body').html().replace(/\<hr (class="?separator"?)\s?\/?\>/ig,'<div $1></div>'));
P.S. The code at the very beginning is just an example showing what kind of regular expressioin I want to use with jQuery. I never write <hr class="seperator" /> or <div class="separator"></div> in the HTML source.