%百分比的正则表达式语法

时间:2012-10-05 19:23:48

标签: php regex

正则表达式问题。需要更换img.msg.yahoo.com/avatar.php吗?与www.sitename.com/rproxy?url=img.msg.yahoo.com/avatar.php%3f

%VAR-Comments-data.regex("/img.msg.yahoo.com\/avatar.php\?/", "www.sitename.com/rproxy?url=img.msg.yahoo.com/avatar.php[\x25]/'")%

1 个答案:

答案 0 :(得分:0)

您可能需要转义网址中的点:

%VAR-Comments-data.regex("/img\.msg\.yahoo\.com\/avatar\.php\?/", "www.sitename.com/rp