I have the existing regex:
self.metadata = re.sub('(?<=<file_name>)\d{4,}','', self.metadata)
This will do the following conversion:
<file_name>1232434_FILE.mov --> <file_name>FILE.mov
However, I do not want it to strip a filename if there is a . (period) directly after it.
So, the result should be:
<file_name>1232434_FILE.mov --> <file_name>FILE.mov
<file_name>123445.mov --> <file_name>123445.mov
What would be the new correct regular expression to use?
