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

<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);
参考 正则表达式教程

いいねを押す +0
人気のチュートリアル
詳細>
最新のダウンロード
詳細>
ウェブエフェクト
公式サイト
サイト素材
フロントエンドテンプレート
私たちについて 免責事項 Sitemap
PHP中国語ウェブサイト:福祉オンライン PHP トレーニング,PHP 学習者の迅速な成長を支援します!