in reply to Quick REGEXP question

File::Basename is the core module for splitting up the folder, base filename, and extension. It defaults to interpreting based on $^O, but can also interpret foreign os paths.