I am trying to extract all instances of last names in a text, but the following expression is only getting me Mr. Mrs. or Miss without the name after it. What is wrong with my python regex?
surnames = re.findall(r'(Mrs\. |Mr\. |Miss )[A-Z][a-z]+', text.read())
returns:
['Mr. ', 'Mr. ', 'Mrs. ', 'Mr. ',.....