Let me try explaining the overall goal of the program:
- Read in directory of file names
- Most file names hava a Root number, Revision, Extension of pdf: 12345_-v1.pdf
- Most names have an underscore as the seperator between Root Number and Revision: 3873215a_-v1.pdf
- Many names have more than 1 underscore used as text seperators: 21586_rework_bore_tool_-v2.pdf
- Some names have no underscores in them: 4148-t-2.pdf
- I need to display only the latest revision of the file, so if the following exist in the directory:
21586_rework_bore_tool_-v1.pdf
21586_rework_bore_tool_-v2.pdf
Only display 21586_rework_bore_tool_-v2.pdf
- I am unable to capture all of the combinations listed above...
I appreciate all recommendations...
AJ