I have a variable containing values like 10d2, 7a7, a8 or d6 (i.e. <digits><alpha><digits>. Out of these leading digits may not be there. Out of this, I want three variables. The first having value Inital digits, the second one will be alpha and the third will be trailing digits. (In the previous example var1 will be 10, var2 will be d and var3 will be 2. In case of a8, var1 will be null, var2 will be a and var3 will be 9)