I have file name, like
dad a d as da a d ad as d as d.jpg

I want to get file extension , the last three letters.