Kneel for a regular match out of the above content, study for a long time no results

Source: Internet
Author: User
Kneeling for the regular match out the following content, the study for a long time no results.
The HTML code reads as follows:




Eva ouxiu/Ywa Ousio



Brand Description:

The street, the commute, the ladies;


Total monthly Sales: 5,702 pieces


Representative of the fashion business lifestyle, suitable for handsome, elegant and sexy urban women dressed in conference negotiations, leisure parties, banquet party.







PHP is required to match the "" start to the end of the content.
Thank you.
------Optimal Solution--------------------

Preg_match ('/(. *) <\/div>/is ', $str, $mat);
Print_r ($mat [1]);

Ah?
------Other Solutions--------------------
Reference:
PHP Code

Preg_match ('/(. *) <\/div>/is ', $str, $mat);
Print_r ($mat [1]);


Ah?

Try not to, because forget to tell you is the above code is an HTML, there is a lot of content behind. Http://brand.tmall.com/categoryIndex.htm?industryId=110&categoryId=50031407&etgId=91&page=1 Get the brand inside this address. Information
------Other Solutions--------------------
References:
references:

PHP Code

Preg_match ('/(. *) <\/div>/is ', $str, $mat);
Print_r ($mat [1]);


Ah?

Try not to, because forget to tell you is the above code is an HTML, there is a lot of content behind. Http://brand.tmall.com/categoryIndex
.....

The regular answer:
Preg_match_all ('/(. *?) <\/div>/ism ', $content 1, $mat);
Print_r ($mat);

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