Hello, I'm doing a file_get_contents()
in PHP and getting a JS, in that javascript has a code where it contains:
$("#download-botao").attr("href", "link.com");
I want to get this link.com in my PHP, I'm trying to preg_match()
, with the following code:
preg_match('/$("#download-botao").attr("href", "(.*?)");/', $url, $final);
But it is not working, is returning empty, who can help, I would be grateful!