On Sat, 18 Apr 2009, Michael G Schwern wrote: > Let's count the different ways we might have to parse a version. > > X ok, sort it as a number. > X.Y hopefully that's a decimal number and not a dotted pair > X.Y_Z oh right, alpha versions. Strip _Z off and sort as X.Y
No, you just drop the '_' and sort numerically as X.YZ > X.Y.Z dotted triad. split and compare X, Y and Z individually > vX.Y dotted pair? Cheers, -Jan
