Hi,
Why does the follow regular expression not work? I'm trying to pick up all data files within the temp folder which beginwith the file name "Data_W" followed by 3 digits and 3 digits only and nothing more or less.
As I understand \d is to indicate any digit from 0-9 and {n} is n occurrences?
begin program.
import spss, glob
allfiles = glob.glob("C:/Temp/Data_W\d{3}.sav")
print "\n".join(allfiles),
end program.
The below works but I want a more stringent criteria.
begin program.
import spss, glob
allfiles = glob.glob("C:/Temp/Data_W*.sav")
print "\n".join(allfiles),
end program.
Thank in advance
Jignesh