#s','',$input, 4); } $input = preg_replace('#]*data-thumb=#s','YTIMGNOPROXY',$input); $input = preg_replace('#"href="#s','" href="',$input); return $input; } function postParse($input, $type) { $input = preg_replace('#YTIMGNOPROXY(.*?)\.com#s',''.$html.'