curl request and preg_match