php正则匹配
ringa_lee
ringa_lee 2017-04-11 08:57:25
0
1
1873

<embed type=&quot;application/x-shockwave-flash&quot; class=&quot;edui-faked-&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer| 23da7cd13bc520fd554bb88a81c2f7635 |quot; src=&quot;http://v.qq.com/cover/y/y7sekzn1avoyg0c.html?vid=x00207ht4fe| 23da7cd13bc520fd554bb88a81c2f7637 |quot; width=&quot;420&quot; height=&quot;280&quot; wmode=&quot;transparent&quot; play=&quot;true&quot; loop=&quot;false&quot; menu=&quot;false&quot; allowscriptaccess=&quot;never&quot; allowfullscreen=&quot;true&quot;/>
匹配上面embed:得到数组
array(
'0'=>'<embed type=&quot;application/x-shockwave-flash&quot; class=&quot;edui-faked-&quot; pluginspage=&quot;http://www.macromedia.com/go/getflashplayer| 23da7cd13bc520fd554bb88a81c2f76329 |quot; src=&quot;http://v.qq.com/cover/y/y7sekzn1avoyg0c.html?vid=x00207ht4fe| 23da7cd13bc520fd554bb88a81c2f76331 |quot; width=&quot;420&quot; height=&quot;280&quot; wmode=&quot;transparent&quot; play=&quot;true&quot; loop=&quot;false&quot; menu=&quot;false&quot; allowscriptaccess=&quot;never&quot; allowfullscreen=&quot;true&quot;/>',
'1'=>'http://v.qq.com/cover/y/y7sekzn1avoyg0c.html?vid=x00207ht4fe'
)

ringa_lee
ringa_lee

ringa_lee

全部回覆(1)
小葫芦

preg_match('/http:| 2c4cf67eace99f5a255f0885ca8b56be0 |/v.qq.com/cover/(w)/(w+).html?vid=(w+)/is', $string, $match);
参考 正则表达式教程

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板