Best way to get the last segment of an image url path to a variable?

I need to get the last segment of an image url to a variable. is there a formula that will work to do this?

Just the filename? Split and then Last_Item might do what you want.