Python RE
2017-11-01 11:02:21 8 举报
AI智能生成
登录查看完整内容
Python Regular Expression MindMap
作者其他创作
大纲/内容
RE: Regular Expression
RE Objects
regex.flagsregex.groupsregex.groupindexregex.pattern
Match Objects
match.expand(template)
match.start([group])match.end([group])
match.span([group])
match.posmatch.endposmatch.lastindexmatch.lastgroupmatch.rematch.string
RE: Syntax
. ^ $ [] | \\ (...)
(?aiLmsux) (?:...) (?imsx-imsx:...) (?#...)
(?P<name>...) (?P=name)\umber
(?=...) (?!...) (?<=...) (?<!...) (?(id/name)yes-pattern|no-pattern)
\\A \\Z \\b \\B\\d \\D \\s \\S \\w \\W
RE: Module Contents
RE: Flag
re.A re.I re.L re.M re.S re.X
re.escape(pattern)re.purge()
收藏
收藏
0 条评论
回复 删除
下一页