我有一个字母串作为A.B.C.D,其中;
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
For e.g. It can be say, 8.0.0.78 or 81.0.13.332 or 90.03.30.5467 or 1234.234.2345.1, etc.
My requirement is to fetch A, B, C and D in separate variables, i.e.; number before the first decimal, number between 2 occurrences of decimal pairs and number after last decimal.
How I can achieve it? I have tried fetching the positions before, in-between and after decimals and fetch values between those positions, however, because of the variable length of the string, I am not able to get it through.
获取值后,我必须将其与另一个字符串中的值进行比较,并确定哪个字符串具有更高的值。
Please help.
Thanks,
Nishant