That's neater (less code) but hardly easily understood. How would you use the method to get sub-strings ?
Also, it only works if the string starts with an integer as far as I can see
That's neater (less code) but hardly easily understood. How would you use the method to get sub-strings ?
Also, it only works if the string starts with an integer as far as I can see