Well, your code ads it sits now) is not going to work because you're assuming that all numbers are two digits long. Beyond that, there's a better way to determine if ta certain character is a digit
private bool IsNumeric(char value)
{
int outValue;
bool isNumeric = Int32.TryParse(value, out outValue);
return isNumeric;
}
At this point, you could do this:
string numberStr = "";
foreach (char character in code)
{
if (IsNumeric(character))
{
numberStr += character;
}
}
As for parsing the rest of the string appropriately (to extract numeric values), I'll leave that as an exercise for you.