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