a=re.findall(’[a-z]system[a-z]’, ‘: Control_7_ CodeSystem: GroupCodeSystem: IdSystem:’.lower())
re.sub(’|’.join(a),’’,’: Control_7_ CodeSystem: GroupCodeSystem: IdSystem:’.lower())
匹配包含某些字符的字符串 然后一次性替换
a=re.findall(’[a-z]system[a-z]’, ‘: Control_7_ CodeSystem: GroupCodeSystem: IdSystem:’.lower())
re.sub(’|’.join(a),’’,’: Control_7_ CodeSystem: GroupCodeSystem: IdSystem:’.lower())
匹配包含某些字符的字符串 然后一次性替换