in reply to Help with regex using variables

maybe Im missing something here, but if you want just the filename, how about
s#.+\\##;
?