扫码关注官方订阅号
用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);")
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
学习是最好的投资!