Question: Sometimes, directory or file names have numbers in the middle, and there may be more than one number, for example, sec3_14.txt or sec10_1.txt. Provide a
Sometimes, directory or file names have numbers in the middle, and there may be more than one number, for example, sec3_14.txt or sec10_1.txt. Provide a comparator that can compare such strings in a way that makes sense to humans. Break each string into strings not containing digits and digit groups. Then compare two strings by comparing the first non-digit groups as strings, the first digit groups as integers, and so on.
Step by Step Solution
3.40 Rating (163 Votes )
There are 3 Steps involved in it
I have implemented the above program to compare file names in c We have created 4 ... View full answer
Get step-by-step solutions from verified subject matter experts
