Как выучить пирог с режимом
re.search(r'cake$', "Cake! Let's eat cake").group()
## The next search will return the NONE value, try it:
re.search(r'cake$', "Let's get some cake on our way home!").group()
Enchanting Eagle