Hi folks,
I'm looking for a way to split certain strings into 2 variables. There are 4 possible types of strings. Every string begins with 1 or 2 letters followed by 1 or 2 numbers.
In other words: How can I automatically part the letters from the numbers and store each one in a separate variable ?
Regards,
Thomas
I'm looking for a way to split certain strings into 2 variables. There are 4 possible types of strings. Every string begins with 1 or 2 letters followed by 1 or 2 numbers.
Code:
Example 1:
String = A2
Var 1 = A
Var 2 = 2
Example 2:
String = B65
Var 1 = B
Var 2 = 65
Example 3:
String = CC4
Var 1 = CC
Var 2 = 4
Example 4:
String = DD12
Var 1 = DD
Var 2 = 12
In other words: How can I automatically part the letters from the numbers and store each one in a separate variable ?
Regards,
Thomas