fork download
  1. import re
  2.  
  3. s = "EEEE1234"
  4. print re.match(r"^\D+",s).group(0)
  5.  
Success #stdin #stdout 0.02s 4676KB
stdin
Standard input is empty
stdout
EEEE