Tag: str replace

匹配和replace每个“第二”出现的“,在Javascript中

我想用“。”(点)replace“(DoubleQuote逗号) 例如 “我全心全意,反而伤害了我的心”,“我们两人现在分开了”,“我的亲爱的人”,“我们的安慰是,悲伤之路如此清晰”, 应该: "With all my will, but much against my heart", "We two now part. "My Very Dear", "Our solace is, the sad road lies so clear.