import res = '51Pa*0Lp*0e'print(re.findall(r'[A-Z][a-z]\*',s))
Standard input is empty
['Pa*', 'Lp*']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!