开发者

Regular expression for changing links in Dreamweaver

I'm in the process of moving my Dreamweaver-based website to a CMS, and I would like to replace site-wide the following kind of links:

a开发者_开发技巧 href="http://www.domain.com/category/item ### title.html" (where ### is a number)

to

a href="http://www.domain.com/category/item###"

What is the correct regular expression I should use in the find and replace built-in engine?


I propose

'(http://www.domain.com/category/item) *(\d+).+?\.html'

as RE chain

and to substitute the entire match with $1 + $2

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜