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
Menu