Questions about PHP Regular, extracting page-specific content

Source: Internet
Author: User
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)!

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.