I am trying to split an attribute using a regular expression as there may be differences within the attribute.
For Example the attribute may be as AA9A or B7B
However some of the attributes are formatted as CC7 or DD6 I therefore do not want to remove the last character from these, all I need to extract is AA9 or B7.
Is there a way with a regular expression to search for a character, potential character and then a digit?
Or is there a better way to achieve what i am trying to do??
Thanks in advance
Andy