For a string containing multiple characters in the beginning and multiple numeric at the end, how to separate the string in two parts, first part to be stored as a String and the second part to be stored as an int.
The Strings are like DRR2110012, SRR211001, ABCDEFG1,
and i want to separate the ASCII part and store it in another String variable and the digits stored in another int variable for each string using Java.
I know I can split a string like this:
array = "1,2,3,4".split(',');
But this doesn't help since I don't have a separator.
splittakes regex