regexp file cleanup