I have a problem to get the extension of given file name. I receive 1 file URL.
It may be like
/var/www.dir/file.tar.gz OR /var/www.dir/file.exe
Now I need to split the file extension (like .tar.gz OR .exe) from the given URL. The URL is given by the user dynamically. Any one please help me out, how to solve this problem