fix fileRegex with a greedier regex