Hi,
I have an array of file names, all of which follow a standard naming convention which includes a verison number.
The follwoing are all examples:
522.EC202012 PB v0.1a.doc
522.EC202012 PB v1.doc
522.EC202012 PB v0.1.doc
522.EC207896 FRS v1.1.xls
522.EC207896 FRS v2.xls
522.EC207896 PQ.xls
Some files have versions, some don't, some versions are precede by a .minorNumber and some by a .minorNumerAndALetter
I want create a new array that contains only the latest files. e.g. 522.EC207896 FRS v1.1.xls would not be in the new array becuase 522.EC207896 FRS v2.xls is a later versions.
How do I do this???
Thanks.
I have an array of file names, all of which follow a standard naming convention which includes a verison number.
The follwoing are all examples:
522.EC202012 PB v0.1a.doc
522.EC202012 PB v1.doc
522.EC202012 PB v0.1.doc
522.EC207896 FRS v1.1.xls
522.EC207896 FRS v2.xls
522.EC207896 PQ.xls
Some files have versions, some don't, some versions are precede by a .minorNumber and some by a .minorNumerAndALetter
I want create a new array that contains only the latest files. e.g. 522.EC207896 FRS v1.1.xls would not be in the new array becuase 522.EC207896 FRS v2.xls is a later versions.
How do I do this???
Thanks.