开发者

Regular expression for changing links in Dreamweaver

开发者 https://www.devze.com 2023-01-29 23:53 出处:网络
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:

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

精彩评论

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