I am looking for an alternative to file-name-extension that will include an ending ~ if there is one. For example, if there is a file named foo.el~, the result should be el~.
Rather than using the generic split-string, I was hoping there might be something more specific geared towards file extensions.