Added extended regex support for replacement in rename