import re
text = "126 2225xx009"
rx_alnum = r"\b(?:[a-z]+[0-9]+|[0-9]+[a-z]+)[a-z0-9]*\b"
rx_digits = r"\d+"
alphanumeric_text = re.sub(rx_alnum, lambda x: " ".join(x.group()), text)
print(alphanumeric_text)
numeric_text = text = re.sub(rx_digits, lambda x: " ".join(x.group()), alphanumeric_text )
print(text)
aW1wb3J0IHJlCnRleHQgPSAiMTI2IDIyMjV4eDAwOSIKcnhfYWxudW0gPSByIlxiKD86W2Etel0rWzAtOV0rfFswLTldK1thLXpdKylbYS16MC05XSpcYiIKcnhfZGlnaXRzID0gciJcZCsiCmFscGhhbnVtZXJpY190ZXh0ID0gcmUuc3ViKHJ4X2FsbnVtLCBsYW1iZGEgeDogIiAiLmpvaW4oeC5ncm91cCgpKSwgdGV4dCkKcHJpbnQoYWxwaGFudW1lcmljX3RleHQpCm51bWVyaWNfdGV4dCA9IHRleHQgPSByZS5zdWIocnhfZGlnaXRzLCBsYW1iZGEgeDogIiAiLmpvaW4oeC5ncm91cCgpKSwgYWxwaGFudW1lcmljX3RleHQgKQpwcmludCh0ZXh0KQo=