Here is my string 'ABCDEF-24-04-07-001' and all i want is to get last string separated by -(hyphen) i.e. 001.
But another complexity for me that, the above string may vary i.e. it may be 'ABC-24-07-01' OR 'ABCDE-24-07-010' OR 'ABCDE-24-07-1'.
Please help me to get solution for the above problem