For a string consisting of one character, followed by a number (one or two digits), I would like to split it into a character and an integer. What is the easiest way to do this?
My thoughts so far are:
I can easily capture a character like this:
string mystring = "A10";
char mychar = mystring[0];
The hard part seems to capture a one-two-digit number.
source
share