import re s = "EEEE1234"print re.match(r"^\D+",s).group(0)
Standard input is empty
EEEE
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!