Hi All,
I have IDs of following structure.
6000000107-1-0000000160-00000074281567
500004272696-1-0000000275-00000073969605
4500006358-1-0000000465-00000073971047
830452869878-1-0000002506-00000074349358
I need to extract digits from id from middle part, For example,
for 6000000107-1-0000000160-00000074281567 (result should be 160)
for 500004272696-1-0000000275-00000073969605 (result should be 275)
for 4500006358-1-0000000465-00000073971047 (result should be 465)
for 830452870371-1-0000002522-00000074349360 (result should be 2522)
for 830452869878-1-0000002506-00000074349358 (result should be 2506)
i.e LAST NON-ZERO DIDGITS OF MILLDE PART
(Note: length of first part may be varied as shown in sample)
Any help please?
Thanks
I have IDs of following structure.
6000000107-1-0000000160-00000074281567
500004272696-1-0000000275-00000073969605
4500006358-1-0000000465-00000073971047
830452869878-1-0000002506-00000074349358
I need to extract digits from id from middle part, For example,
for 6000000107-1-0000000160-00000074281567 (result should be 160)
for 500004272696-1-0000000275-00000073969605 (result should be 275)
for 4500006358-1-0000000465-00000073971047 (result should be 465)
for 830452870371-1-0000002522-00000074349360 (result should be 2522)
for 830452869878-1-0000002506-00000074349358 (result should be 2506)
i.e LAST NON-ZERO DIDGITS OF MILLDE PART
(Note: length of first part may be varied as shown in sample)
Any help please?
Thanks