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

 

相关文章:

  • 2022-12-23
  • 2021-12-31
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2021-10-23
  • 2022-01-07
  • 2021-07-09
猜你喜欢
  • 2021-08-02
  • 2021-09-10
  • 2022-12-23
  • 2021-08-30
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案