<?php

$url = '$("#download-botao").attr("href", "link.com");';
preg_match('/,\s?"(.+?)"\);/', $url, $final);
echo $final[1];