能否请你帮我做Perl的正则表达式替换 (http://.+),以http://www.my1.com/redir?$ 1 却又无可奈何对于网址像http://www.my1.com/或http://my1.com/如何重写除特定网域之外的网址?
比如我需要更换 http://whole.url.site.com/foo.htm到http://www.my1.com/redir?http://whole.url.site.com/foo.htm http://www.google.com到http://www.my1.com/redir?http://www.google.com 但http://www.my1.com/index.php未经处理。
非常感谢!
对不起,我最初制定 – 2010-01-26 21:40:28
混淆你什么你的意思做'如http:// WWW。 my1.com/或http:// my1.com /',在这里我特别感兴趣的是你所指的'like'。 – 2010-01-26 21:46:36