Bir çok yöntemi varda en basiti

preg_match(@<script src="(.*?)"@si, $response, $matches);
print_r($matches);