Take the 2-minute tour ×

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)


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?

share|improve this question

1 Answer 1

I propose

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

as RE chain

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

share|improve this answer
I've sorted this out but thanks for helping! –  Steven Dec 12 '10 at 23:20

Your Answer


