Hi, I was wondering if it was possible to compare file name sub strings?
For example, our comparisons will be dealing with substring "rules", like revision numbers and files being archived. Some examples might be as follows:
I will display the "Filenames"(and content as such)
1) 1234567#A(x) and 1234567#A(x) - these files are the same
2) 1234567#A(x) and 1234567#B(x) - these files have different names, but contain the same information, and are therefore the same.
3) 1234567#A(x) and 1234567#A(y) - these files have the same names, but contain different information, and are therefore different
4) 1234567#A(x) and 1234567#B(y) - these files have different names, but contain different information, and are therefore different
As it is, case 1 and 3 will be compared normally, as they have the same file name, but case 2 and 4 will not be compared, because the filenames are different.
Is there a way I can compare only the first part of the filename (in this case, the first 7 characters) and ignore the extension?
For example, our comparisons will be dealing with substring "rules", like revision numbers and files being archived. Some examples might be as follows:
I will display the "Filenames"(and content as such)
1) 1234567#A(x) and 1234567#A(x) - these files are the same
2) 1234567#A(x) and 1234567#B(x) - these files have different names, but contain the same information, and are therefore the same.
3) 1234567#A(x) and 1234567#A(y) - these files have the same names, but contain different information, and are therefore different
4) 1234567#A(x) and 1234567#B(y) - these files have different names, but contain different information, and are therefore different
As it is, case 1 and 3 will be compared normally, as they have the same file name, but case 2 and 4 will not be compared, because the filenames are different.
Is there a way I can compare only the first part of the filename (in this case, the first 7 characters) and ignore the extension?
Comment