I encountered a problem when attempting to match the motion files with their corresponding text annotations. Apparently the file names are irregular, some contain an extra 'clip1' while some others contain extra index numbers like 1/2/3. How am I supposed to match the motion files with the correct text annotation?

I encountered a problem when attempting to match the motion files with their corresponding text annotations. Apparently the file names are irregular, some contain an extra 'clip1' while some others contain extra index numbers like 1/2/3. How am I supposed to match the motion files with the correct text annotation?