works better to scrub filenames before regex