请问怎么用preg_match_all语句匹配出 title引号里的内容谢谢帮忙。------解决方案-------------------"/> 请问怎么用preg_match_all语句匹配出 title引号里的内容谢谢帮忙。------解决方案-------------------">

Home  >  Article  >  Backend Development  >  请问个preg_match_all 正则语句

请问个preg_match_all 正则语句

WBOY
WBOYOriginal
2016-06-13 10:18:09858browse

请教个preg_match_all 正则语句
class="EventCanSelect" title="正品 mm木村井泓 2011年流行斜挎包/单肩包 330016">

请问怎么用preg_match_all语句匹配出 title引号里的内容
谢谢帮忙。

------解决方案--------------------

PHP code
if(preg_match('/title="([^"]*)"/i',$str,$matchs)){  var_dump($matchs);}
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn