python 零宽断言

注意:在其他语言或者网上的一些正则工具中,分组命名的语法是(?<name>exp)或(?'name'exp) ,但在Python里,这样写会报错: Thisnamed group syntax is not supported in this regex dialect. Python 中E确的写法: (?P<name>exp)

posted @ 2022-08-23 19:46  charyGao  阅读(18)  评论(0)    收藏  举报