python re零宽断言踩坑 re.error: look-behind requires fixed-width pattern
pythonre零宽断言踩坑在在线的正则校验工具上写了大半天才写出来的表达式,往python里一粘贴复制,代码行飘红,强行运行之后,报错.表达式:#用单引号替换txt_line中匹配到的双引号param=re.sub(r'(?<=param":(\s)*"\{(.*))"(?=.*(\})","(in|co))','\'',txt_line)re.error:look-behindrequires