请问怎么用preg_match_all语句匹配出 title引号里的内容谢谢帮忙。------解决方案-------------------"/> 请问怎么用preg_match_all语句匹配出 title引号里的内容谢谢帮忙。------解决方案-------------------">
Home > Backend Development > PHP Tutorial > 请问个preg_match_all 正则语句

请问个preg_match_all 正则语句

WBOY
Release: 2016-06-13 13:35:19
Original
713 people have browsed it

请教个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);
} <div class="clear">
                 
              
              
        
            </div>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template