The problem with the regular expression match above is solved.

Source: Internet
Author: User
Found the reason, but the original post cannot reply, also cannot modify

Let's summarize:
To match all the image addresses in a web address, write a regular expression like this:
$reg = "/\" \ ']*)/I ";

Why image file address like the following:

can only match to:
  


The reason is that the browser ... I'm using chrome.
$reg = "/\" \ ']*)/i "; $s =";p reg_match_all ($reg, $s, $m);p Rint_r ($m);


Post-run output:
Array (    [0] = = Array        (            


Chrome puts the back
Array        (            [0] = =. /images/album cover/album_012.jpg        ))

It's all erased! And in the source code, that is to see the last page source code also see this paragraph! Change Firefox, above this paragraph directly on the page also can't see, see source code can find this paragraph, and is marked with red, this decisive is forcing me to change Firefox?


Reply to discussion (solution)

....
Echo '

';  

....
Echo '

';  
Print_r ($m);
Add a
, that is, the output of the above results, it should be chrome security measures, the results of the bad code deleted, do not believe you can change a chrome, my chrome version is 29.0.1541.0  

Tried it, as if it were so. Then use Firefox.

  • 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.