- Mar 1, 2000
- 30,890
- 5,001
- 126
I have a directory with many multiple sub directories, and within those sub-directories many files (pdf and tifs)
I'm in need of a method to search the directories for any file names that contain 16 numerical characters in a row. trick is there are many different naming conventions for the files:
XXXX-1111111111111111-(Y).pdf
2012-1111111111111111_NAME.tif
1111111111111111.pdf
20120828-1111111111111111.pdf
etc etc etc
So I want to identify ANY files with the 16 digits in a row AND pull that portion of file name so I can use it in a SQL look up.
Does that make any sense?
I'm in need of a method to search the directories for any file names that contain 16 numerical characters in a row. trick is there are many different naming conventions for the files:
XXXX-1111111111111111-(Y).pdf
2012-1111111111111111_NAME.tif
1111111111111111.pdf
20120828-1111111111111111.pdf
etc etc etc
So I want to identify ANY files with the 16 digits in a row AND pull that portion of file name so I can use it in a SQL look up.
Does that make any sense?