0

我已经<a href=""></a>用这个正则表达式删除了我博客中的所有标签: <a\s[^>]*> $1现在我需要更改我的所有图片 URL:

<img src="http://files.tampo.ua/files/news/part_38/388705/1.jpg" width="500" height="291" border="0" class="c24" />

到:

<img src="https://dl.dropbox.com/u/85819604/1.jpg" width="500" height="291" border="0" class="c24" />

所以我需要替换图像服务器的主路径。

http://clip2net.com/s/22PwP

4

1 回答 1

0

尝试替换http://files.tampo.ua/files/news/[^/]*/[^/]*/https://dl.dropbox.com/u/85819604/

于 2012-06-18T18:39:37.403 回答