php regular matching

WBOY
Release: 2016-07-06 13:52:13
Original
2625 people have browsed it


匹配上面embed:得到数组
array(
'0'=>'',
'1'=>'http://v.qq.com/cover/y/y7sekzn1avoyg0c.html?vid=x00207ht4fe'
)

回复内容:


匹配上面embed:得到数组
array(
'0'=>'',
'1'=>'http://v.qq.com/cover/y/y7sekzn1avoyg0c.html?vid=x00207ht4fe'
)

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

Related labels:
php
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