/i', $page_markup, $matches); $divclass = $matches[1]; $replace = array('
', '
'); $new_markup = str_replace($replace, '', $page_markup); $new_markup = preg_replace('/^