So we're all hopefully familiar with Spreadsheet 'A1' cell notation.
It's simply an alphanumeric representation of the positioning of said cell within a grid. The letter(s) represent the column positioning of the cell, and the number represents the row.
The 'letter' part can consist of 1 or more letters from the 26 letter English alphabet, all of which must be capital letters. These map to numbers through the use of 26-adic bijective numeration. The 'number' part can consist of any positive, non-zero integer.
The challenge, write a program that given the A1 notation of any cell as a single string, can output a string containing the column position represented as a number, followed by a space and then the row number.
Sample Input/Outputs below:
A1
>>1 1
B10
>>2 10
AC4
>>29 4
AAC753
>>705 753
F123
>>6 123
GL93
>>194 93
This is my first challenge, hence the relative simplicity and potential poorness of the criteria.
EDIT: String must be letters followed by numbers and the winning criteria is the shortest code length (if that can be a thing)
EDIT: Related to this but does the reverse process with a different starting index. Some may argue that this fact makes the linked puzzle more interesting.
["A", "1"]
\$\endgroup\$