📌  相关文章
📜  python 获取两个单词之间的单词 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:06.247000             🧑  作者: Mango

代码示例1
# credit to the Stack Overflow user in the source link
import re

text = 'gfgfdAAA1234ZZZuijjk'

m = re.search('AAA(.+?)ZZZ', text)
if m:
    found = m.group(1)

# found: 1234