Home >Backend Development >PHP Tutorial > 下。如何把a=ddddd&page=1111中的page=1111这样的删去呢

下。如何把a=ddddd&page=1111中的page=1111这样的删去呢

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:43:121074browse

求助下。怎么把a=ddddd&page=1111中的page=1111这样的删去呢。
这是个url地址,截取出来的参数串。

a=ddddd$page=2334&www=2222
page=1111&m=3234&o=r2345
a=ddddd$wc=2334&page=plo

这三种都有可能。前面,中间,最后。

怎么正则把page=参数值,干掉呢。

我鼓秋了半天正则,写出来个这。page=.*&|\s,还是不行,匹配不出来。

高手指点一下啊。

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