in reply to Regular Expression Help

File::Basename is core and crossplatform.