import retext = 'Smith-Jones, Robert&Epson, Robert'pattern = r'[A-Za-z]+(?:-[A-Za-z]+)?,\sRobert'print re.findall(pattern, text)
Standard input is empty
['Smith-Jones, Robert', 'Epson, Robert']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!