📌  相关文章
📜  获取子字符串大小写无关的python代码示例的出现次数

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

代码示例1
import re
_, count = re.subn(r'hello', '', astring, flags=re.I)
print('Found', count, 'occurrences of "hello"')