Get value of a string after a slash

Get value of a string after a slash

Hello!

I need to extract the an image filename with out it's file extension.

Let's say I got this:
http://site/page/myimagename.jpg

and what I want is to get is this result back:

myimagename

in other Words Everything after the last slash, but cut of 4 characters from right


Would be great if someone understands how to do this?

cheers