python正则(匹配任意位置中间)文本字符串内容

 

 

# -*- coding: UTF-8 -*-

import re

txt='@font-face{font-family:"capplition/font-woff;charset=utf-8;basK0Vmv==)'

bs64_str = re.findall("charset=(.*?);basK0Vmv", txt)[0]

print(bs64_str)



utf-8

 

posted @ 2020-08-30 17:45  测试艺术家  阅读(2939)  评论(0编辑  收藏  举报