用js,替换一段字符串当中以background-color: rgb为开头,以;结尾的字符串,替换为background-color: rgb(225,23,45);
回复内容: 用js,替换一段字符串当中以background-color: rgb为开头,以;结尾的字符串,替换为background-color: rgb(225,23,45);
background-color: rgb(afdf);.replace(/\b(background-color:\s*rgb)[^;\n]*;/g,$1(255,23,45);)
