我试图替换两个已知字符之间的逗号( § )
§
我的测试字符串: '§Bandra(West),Mumbai§'
'§Bandra(West),Mumbai§'
预期产出: '§Bandra(West);Mumbai§'
'§Bandra(West);Mumbai§'
re.sub(r'\§[^\,]+\,[^\,]+\§',r'\§[^\,]+\;[^\,]+\§', '§Bandra(West),Mumbai§')
但那只是将正则表达式返回为字符串: \§[^\',']+\;[^\',']+\§
\§[^\',']+\;[^\',']+\§
我在这里做错什么了?