open file at regex match