正则表达式(?P<name>...)

来源:互联网 发布:java进程调度算法代码 编辑:程序博客网 时间:2024/06/05 09:50

(?P…)
Similar to regular parentheses, but the substring matched by the group is accessible via the symbolic group name name. Group names must be valid Python identifiers, and each group name must be defined only once within a regular expression. A symbolic group is also a numbered group, just as if the group were not named.