函数re.findall(), 让正则表达式匹配仅一个字符的字符串,为什么会匹配得到两个结果?
在交互式解释器中输入如下代码:
a = re.findall(‘(?<!h)’, ‘i’)
print(a)
运行结果为[‘’, ‘’],为什么?
推荐文章: