问题描述:

I searched all the web but did not solve my problem.

I need a regular expression to match or replace a word folowed with a double quote.

Example :

uniquehereuniqueyouunique"can"uniquegetuniquefoounique"bar"

I need to replace all unique" by something (ex notunique). I tried :

preg_replace("/unique\"/", 'notunique', $contents);

but that don't match.

thanks for your help

网友答案:

I found it !

preg_replace('/unique."/', 'notunique', $contents);
相关阅读:
Top