For PHP Regular, extract the page to specify the content of the problem.
For PHP Regular, extract the page to specify the content of the problem.
Source:
<meta name= "Httpfileurl" content= "http://stor.vdisk.cn/loadfile/C8/CE8%B5%84%E6%BA%90%E7%9B%92%E4%BD%BF%E7%94 %a8%e6on%95%99%e7%a8%8b.mp4 ">
May I ask how to extract the link address behind content=?
------Solution--------------------
Reference:
Quote: References:
$content = ' <meta name= ' Httpfileurl "content=" http://stor.vdisk.cn/loadfile/C8/CE8%B5%84%E6%BA%90%E7%9B%92%E4% Bd%bf%e7%94%a8%e6on%95%99%e7%a8%8b.mp4 ">"; $content = Preg_match ("------Solution--------------------Content=\" (. *) \ "------Solution--------------------", $content, $match); Echo ($match [1]);
The code is like this.
<meta content= "Day of the Scar theme song. mp3" name= "description" > <meta name= "httpfileurl" content= "key= 28bac3a4334746589415441857456dbe&tt=1391937000&st=yvmccoivfipswaonsennfa&filename=%e5%a4%a9%e4%b9% 8b%e7%97%95%e
$content = Preg_match ("------solution--------------------\" Httpfileurl\ "(\s+)? content=\" (. *) \ "------ Solution--------------------", $content, $match); Echo $match [2];
The above is about PHP regular, extract the content of the Web page of the relevant issues, more relevant content please pay attention to topic.alibabacloud.com (www.php.cn)!