还是正则匹配的问题,求前辈指导.

WBOY
Release: 2016-06-23 14:10:35
Original
755 people have browsed it

李毅

等级7经验值268
如何能匹配到 m?kw= 后面的那点链接 ?
求指教..


回复讨论(解决方案)

preg_match('/m\?kw=([^\"]+)/',$s,$m);
echo $m[1];

preg_match('/m\?kw=([^\"]+)/',$s,$m);
echo $m[1];
谢谢谢谢啊 又是你...

十分给力 谢谢

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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!