re.findall( r'all (.*?) are', 'all cats are smarter than dogs, all dogs are dumber than cats')
# Output: ['cats', 'dogs']
[x.group() for x in re.finditer( r'all (.*?) are', 'all cats are smarter than dogs, all dogs are dumber than cats')]
# Output: ['all cats are', 'all dogs are']
matches = re.findall(r"xxx|yyy", a_string)
text = "This is a good sentence. This is another good 1! thanks"
sentences = re.findall(r"[A-Z].*?(.s|?s|!s)", text)