How do I write a regex to get rid of the "htm" at the end of this link?

http://www.funnydogsite.com/pictures/Sunk_In.htm

Using python. I cant figure this thing out.

Hello!

This should work: /\.htm$/