# your code goes here import re str = "10S#9D7T*"rex = re.compile(r'\d{1,2}[A-Z][*#]?')print(rex.findall(str))
Standard input is empty
['10S#', '9D', '7T*']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!