reuse regex for filename