I want to convert
http://website.com/cat/movie/nameofmovie.html
to this
http://website.com/cat/movie
So I have tried [/].*(html) But this applied from first / char, Is there any way to specify 5th / in the line?
Is there any method to inverse replace?
/or the last part of the link?