changed regex to include filenames with dashes