import remy_string = "America's mom, American"print(re.findall(r'\bAm[a-zA-Z]+\b', my_string))
Standard input is empty
['America', 'American']
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!