I'm attempting to do some scripting but not too sure how to go about it via regex.
I have a directory containing several files labeled in the following format:
bb010502.html
bb011002.html
bb011402.html
As you can probably tell, the file name is bb followed by the date (not necessarily the date of creation).
How would I regex grabbing the filename of the latest file in the directory based on the filename?
Thx a bunch,
FM
I have a directory containing several files labeled in the following format:
bb010502.html
bb011002.html
bb011402.html
As you can probably tell, the file name is bb followed by the date (not necessarily the date of creation).
How would I regex grabbing the filename of the latest file in the directory based on the filename?
Thx a bunch,
FM