TOP

2.1 re 模块

正则表达式

简单的范围的字符组

字符

量词

字符集

分组

转义字符

flags

方法

 .findall()

.finditer()

.search()

.match()

 .sub()

.subn()

 .compile()

 

特殊场景

 findall的优先级查询

split的优先级查询

 分组的命名和引用

匹配小数整数

 

posted @ 2019-01-30 17:12  羊驼之歌  阅读(203)  评论(0编辑  收藏  举报