given the following string in PHP:
$html = \" text 1
text 1
$notest2 = preg_replace( "/class\s*=\s*'[^\']*test2[^\']*'/", "class=''", $src);
C.