Python函数re.sub(pattern, replacement, string)返回修改后的字符串,匹配的模式替换为替换.有没有简单的方法来检查匹配是否已经发生并且已经进行了修改?(还有,修改了多少)
re.sub(pattern, replacement, string)
python regex
python ×1
regex ×1