Working in arcgis desktop 10.2, I use python scripts to split some strings, found in an attribute table. Most of them were quite easy to split, but here is one that i could't manage to break.
string_example = "123a456"
I need to find were the first letter appears. Knowing it's position I will test if everything left from that letter are numbers AND everything right from that letter are numbers. If so i will write each part of the string in a new field.
FieldA = "123a456"
find the first letter, test if it is surrounded by numbers
FieldB= "123"
FieldC= "a"
FieldD= "456"
There are variations of the string, plenty of them: "12a1","12A1", "123ab1234", "a123b456". I need to find the structure: number-letter-number.