首页 > python正则表达式匹配问题?
上面是代码,问题是,为什么不能匹配到mark和数字2?
match方法是从字符串开头开始匹配的 字符串开头不是'mark' '2' 当然匹配不到 试试search方法
使用findall
findall