Home > Backend Development > PHP Tutorial > 请问一个简单的正则写法,多谢了.

请问一个简单的正则写法,多谢了.

WBOY
Release: 2016-06-13 12:58:46
Original
924 people have browsed it

请教一个简单的正则写法,谢谢了..

本帖最后由 qcbf2 于 2012-11-29 19:35:16 编辑 &sa=U&ei=UUe3UKKcDu64iAeg3oDQAg&ved=0CB8QFjAA&usg=AFQjCNHi9PYhEENGmM9ekZrUbaqGA9HEjw" target="_blank">PHP 教程

这里面红色的是不能要的,怎么用preg_replace匹配掉呀?谢谢了...
------解决方案--------------------
$s='PHP 教程';
echo preg_replace('/&sa[^"]+/','',$s);
------解决方案--------------------
+1!
引用:
$s='PHP 教程';
echo preg_replace('/&sa[^"]+/','',$s);
Related labels:
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