Whats the correct way to match a filename from a full path using
Say I want to check if the file is a git commit message
svn-commit.3.tmp to pass to 3rd party code that only takes regular expressions (something like
(string-match my-clever-regex "/path/to/svn-commit.3.tmp")
COMMIT_EDITMSG as an example:
"/COMMIT_EDITMSG\\'"fails to match
How can I match a filename which may or may not contain a path?