I have a directory with lot of subfolders, and each folder containing HEA and DAT files.
For example, a '30001' folder directory would contain he following files:
30001.hea
30001_0001.dat
30001_000.hea
30001_0002.dat
30001_0002.hea
…
30001_0017.dat
30001_0017.hea
30001n.dat
30001n.hea
RECORDS
Furthermore, the 'RECORDS' file in '30001' directory contains the following information:
30001
30001n
30001_0001
30001_0002
30001_0003
…
0001_0017
Is there any way to do a regex to exclude anything with underscore from datastore?
Best Answer