摘要: 一、Re库的主要功能: 二、Re库的主要函数的功能: •re.search(pattern,string,flags=0) (1)flags的常用标记: (2)search函数实例 •re.match(pattern,string,flags=0) (1)match函数实例 •re.findall( 阅读全文
posted @ 2019-01-23 22:02 撑死算工伤吗 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一、正则表达式在文本处理中的常用: 1.表达文本类型的特征(病毒、入侵等) 2.同时查找或替换一组字符串 3.匹配字符串的全部或部分(主要) 二、正则表达式的常用操作符 三、经典正则表达式实例 (([1-9]?\d|1\d{2}|2[0-4]\d|25[0-5]).){3} ([1-9]?\d|1\ 阅读全文
posted @ 2019-01-23 15:58 撑死算工伤吗 阅读(117) 评论(0) 推荐(0) 编辑