Python对基本分组语法做了扩展,增加了命名组(named group)。通过使用名字来指示组,这样以后就可以更容易地修改模式,而不必同时修改使用了匹配结果的代码。
基于40个网页-相关网页
AdminP可以更彻底地删除和重新命名组。
AdminP does a more thorough job of removing and renaming groups.
如果您喜欢用编号组而非命名组,则此函数仍然有效。
If you prefer to use numbered groups instead of named groups, this function will still work for you.
这个类可以向组中添加成员、重新命名组和删除组(以及与组不相关的其他许多函数)。
This class can add members to groups, rename them, and delete them (along with many other functions not related to groups).
应用推荐