Python 正则表达式匹配特定内容并提取 日期: 2025-05-12 标签: 常规 import re s = '字符我们字符2我们' pattern = '.?(.?).*?我们' match = re.search(pattern, s) a = match.group(1) print(a) 原文地址: https://www.cveoy.top/t/topic/m3MR 著作权归作者所有。请勿转载和采集! 免费AI点我,无需注册和登录