import res = " P. Parker or M. Jordan or J. Guti P.Parker or M.Jordan or S.Gohan "print(re.findall(r"\b[A-Z]\.\s?[A-Z][a-z]+\b", s))
Standard input is empty
['P. Parker', 'M. Jordan', 'J. Guti', 'P.Parker', 'M.Jordan', 'S.Gohan']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!