Batch script for fetching sub-strings having multiple decimal places -
i have string having nomenclature a.b.c.d, where;
a= single/2/3/4 digit number b= single/2/3/4 digit number c= single/2/3/4 digit number d= single/2/3/4 digit number e.g. can say, 8.0.0.78 or 81.0.13.332 or 90.03.30.5467 or 1234.234.2345.1, etc. requirement fetch a, b, c , d in separate variables, i.e.; number before first decimal, number between 2 occurrences of decimal pairs , number after last decimal. how can achieve it? have tried fetching positions before, in-between , after decimals , fetch values between positions, however, because of variable length of string, not able through.
after values, have compare values string , decide string has higher value.
please help. thanks, nishant
Comments
Post a Comment