import re
x = 'Cat eats rat.'
f = lambda x: [e.lower() for e in re.findall(r'bw+b', x)]
a = f(x)
print(a)