modifiedDirList = []
for name in dirList:
    match = re.search('\\.mp3', name)
if match:
    i += 1
modifiedDirList.append(name)
print(modifiedDirList)
Why are these strings escaping from my regular expression in python?