fork download
  1. # your code goes here
  2.  
  3. import re
  4.  
  5. str = "10S#9D7T*"
  6. rex = re.compile(r'\d{1,2}[A-Z][*#]?')
  7. print(rex.findall(str))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
['10S#', '9D', '7T*']