File renaming – match patterns and rename only matches. After delete all mismatches
I am trying to rename several files (thousands) with the following algorithm in Python:
There is a list of word-patterns. Each entry starts on a new line and contains text data of one or more words. For example: