I am using the following script to find all h1 elements, within a parent ID container that will fit a curtain criteria...
$(\'#cpcompheader h1\').html(\"&nbs
var myRegEx = new RegExp('^ \s'); $('#myDiv h1').each(function() { var myText = $(this).text(); if (myText.match(myRegEx) ) { ... } });