我有一个这样的字符串
str = '["username"] = "user";
["deepscan"] = "true";
["token"] = true;
["password"] = "krghfkghkfghf";
["uploadMethod"] = "JSON";
["serviceIsRunning"] = {};
["host"] = "sample.com";
["instance_ID"] = 405454058;'
在这种情况下,我想要模式匹配 ["password"] =
并让它只替换介于两者之间的字符串。";' that would be '"krghfkghkfghf"