![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
正则表达式
文章平均质量分 73
Scandinavians
明天会更好!
展开
-
[Python]解决正则表达式的"贪婪"匹配
我们看下面的匹配:原创 2014-07-22 23:04:56 · 850 阅读 · 0 评论 -
[Python]re模块的核心函数和方法
re模块常用的函数和方法原创 2014-07-22 20:52:53 · 763 阅读 · 0 评论 -
正则表达式中最常见的符号和字符
Notation Description Example RE Symbols literal Match literal string value literal foo re1|re2 Match regular expressions re1 or re2原创 2014-07-22 17:18:21 · 448 阅读 · 0 评论 -
[Python]正则表达式(...)分组的扩展示例
(?...) This is an extension notation (a '?' following a '(' is not meaningful otherwise). The first character after the '?' determines what the meaning and further syntax of the construct is. Exte原创 2014-07-26 18:32:43 · 646 阅读 · 0 评论 -
Python正则表达式指南
一、 正则表达式基础 1.1.概念介绍 正则表达式是用于处理字符串的强大工具,它并不是Python的一部分。 其他编程语言中也有正则表达式的概念,区别只在于不同的编程语言实现支持的语法数量不同。 它拥有自己独特的语法以及一个独立的处理引擎,在提供了正则表达式的语言里,正则表达式的语法都是一样的。 下图展示了使用正则表达式进行匹配的流程: 正则表达式的转载 2014-07-26 19:00:11 · 370 阅读 · 0 评论 -
[Python]几个正则表达式匹配的例子
例一、匹配以abc开头的单词原创 2014-07-26 22:45:29 · 726 阅读 · 0 评论