Working in Pascal, I would like a regular expression that can split a string into 3 parts. The string to be split will always be 1 or more digits, followed by 1 or 2 letters, followed by 1 or more digits.
Examples are '1A1', 12B6', '4AA17'.
These should be split into [1, A, 1], [12, B, 6] and [4, AA, 17].
The Pascal code will look like this:
MyRegEx := 'The RegEx I am looking for';
ResultArray := nil;
ResultArray := TRegEx.Split(MyInputString, MyRegEx);
Is it possible to do this with a single regular expression?