📜  如何学习正则表达式 pyton - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:24.940000             🧑  作者: Mango

代码示例1
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()