replace regex to find file name by File.basename