SyntaxFix
Write A Post
Hire A Developer
Questions
# for each file on a directory, rename filename
file_list = os.listdir (r"D:\Dev\Python") for file_name in file_list: os.rename(file_name, re.sub(r'\d+','',file_name))