Home  >  Article  >  Backend Development  >  还是正则匹配的问题,求前辈指导.

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

WBOY
WBOYOriginal
2016-06-23 14:10:35770browse

李毅

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


回复讨论(解决方案)

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

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

十分给力   谢谢

Statement:
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