added the possibility to return only file names but not use the regex on them