fork download
  1. import re
  2.  
  3. str_ = "8983605653Sudanshu452365423256Shinde"
  4. m = re.match(r"(\d{10})([A-Za-z]{8})(\d{12})([A-Za-z]{6})",str_)
  5. if m:
  6. print(list(m.groups()))
Success #stdin #stdout 0.03s 9456KB
stdin
Standard input is empty
stdout
['8983605653', 'Sudanshu', '452365423256', 'Shinde']