What are the ways to get the file name from the address of the static resource file?

http download static file address, such as picture address, is not easy to find on the Internet, especially the suffix name has upper and lower case, the file name is mixed in Chinese and English, and the parsing is incorrect. I myself directly split according to the "/" and then intercept the last group to get the file name. I wonder if there is a loophole in this way. Can anyone give me a good way to use it?

May.03,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3f34a-2c459.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3f34a-2c459.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?