我尝试使用以下脚本从base64数据中删除一些字符串:
var base64Data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAIAAAC2BqGFAAARmUlEQVR4nJ2d23bsOq5DVTXy/7/sfqgsBsYE6Nqthwxb5gUEL1LSZ+3zOv/WdV2v1+vzcM75POvXz8PIvF4vlaT67NCImlpUzIu+zo4CiPCoa4oNw6ioKVW3KMyOxftj7xqqkTsOVIbskCkLIwbfGGFsCs9yTAwxbZHTaJnADspF7cfnX/DD3XybZ32gCftqP20Rn9ppr+ZXrbUIDUPkhcAatmWH7prrz+s7Vs0I2aZ9io08y4qiIaaiFrX2EJs0ktX8qsD06LkX8mdN4cciiBRZT4fJGbHSASvUHJsw47TnqNvUaaoZJELWbxTbrcXoIm/R/jknny0XzgGeEnxQU4beNjmFzWM8cEz3oBtY8tG+CTRrB9UaI1Jrp6zX6/V+lZqnGk+edo4biVGXxqcWonc1OL2vHOkOs0gv+olHn46XUJ5piBGkBv5z3QeizS8zp88WhpFuTEXqY+cavsgUuy2ajfBOyuWionRH+5Ery+ivgE6WeeUwsmWlEZ+bjO3E0Ra981MUNoEYy4LBdqLZRSZGkT+YCXJtDiJNtGn2I2XRVwNgm4/sLxgYUftK3ugoBvJcZS22RhbFaKRR/GjzMcLde6SABmMmqEuPRPJZD78ot2N9NuOt49yHbDzo9021r0a4r6/tJzFEI9FO1I03NNpRKn5a8CR9p8n4peI3lhXo2OGVgAG3NYBbjF9morHPrwdV6ID2xlmE2VnUjS0Wn82RPUcv8SvtUH53HT02Zh5D+LnuN5jYCMyh7ZvW0mvnXrz6lV5YbvHKFQOLsNugi/hZwtGIsadgbj1KHSLm6NRPEY0ho0xoq3vYLf6GdrnqLucHocbYW+IjaTboP5/ejyybiUnguWeMr22H7d+a+qBCWc7ayDblZxmSFosm0pweZMsGiCWAYiFgC2APXtWz9S5mls2CPcTXXZ5xaWh0t1fA7u4xrh9asbSoCTuFo4OY1akXqphTE7Zu43CnqUuq3jzaEOO+hRZj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LmXKnVVYOy8l2pnlsidlRvZV8nYdLGHLHMnVXQkwhjhJhPcykKzYnmdTLcytdDO/KN74tDAGHbEFOlgzxpHJ9XUQYJppM2lcy+XIcUCUYOxSmzf+ozh6P5hboz+2Av6oD50Vhgag0KU5pGmuEy+KSo2gmQIC8KFhJ0Kfa0FMW7sgVOFYk3G7ET5RcuWSdICCy1aaKiM60XykQf7lC9MjKFZYSZinNxkGJH0mAB+IqENGK2RAfvK/aYS03kDx5AirQvQk/LRGIwqe3hUiZKRbqoz/Og6wo72F5byf91gWXHS6ycTI1w7clUl3ivMu43IsWkBRxeEFEdzNGhBMQolhGZ/CEWd2VC/0iFANCoQo71w9F/lXCILMRlXOpmj5UvuIYxLv5IsemnXkkDmHmFMqbrR+M1ISwMp4GaMhPLmnbej0wuisdNQqbylLRLiwDgBtM2Xn8umTq5oTfdNi7HZqxnk5pdmGYVJEkazHFNoMjU/vDaqfuygx/I3uHEKPY7p08u8FXvEtnSGai07DZi5PjM6fKv8HhEnDHdOyhNjiPJmc1ffkTPURkqbrTH3O91LweUqZgBEH7O9fF3IjSVAldZzp/REhE0GGzX81I6oVme6wv/Dm+XEi2vOa31+pVvjJYuBxTS/ZDUK6IUC7YBVXuanWRh1Axw9WoL/4p2wIwX6VX/ygTwyYH01KM34jo1Q6T2CZ8pNvu3HQAiV4f8POLVVl9hdfXIAAAAASUVORK5CYII="
var newbase64Data=base64Data.replace('/data:\w*\/\w*;base64,/gm','')
console.log("New Base 64 Data",newbase64Data)
console.log("\n\n")
console.log("Old Base 64 Data",base64Data)
但由于某种原因,即使是正则表达式匹配它也不会取代数据。你们的伙伴们知道为什么会这样吗?
答案 0 :(得分:0)
将正则表达式放在'
或"
引号之外。结果这个脚本:
var base64Data="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAIAAAC2BqGFAAARmUlEQVR4nJ2d23bsOq5DVTXy/7/sfqgsBsYE6Nqthwxb5gUEL1LSZ+3zOv/WdV2v1+vzcM75POvX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0FMW7sgVOFYk3G7ET5RcuWSdICCy1aaKiM60XykQf7lC9MjKFZYSZinNxkGJH0mAB+IqENGK2RAfvK/aYS03kDx5AirQvQk/LRGIwqe3hUiZKRbqoz/Og6wo72F5byf91gWXHS6ycTI1w7clUl3ivMu43IsWkBRxeEFEdzNGhBMQolhGZ/CEWd2VC/0iFANCoQo71w9F/lXCILMRlXOpmj5UvuIYxLv5IsemnXkkDmHmFMqbrR+M1ISwMp4GaMhPLmnbej0wuisdNQqbylLRLiwDgBtM2Xn8umTq5oTfdNi7HZqxnk5pdmGYVJEkazHFNoMjU/vDaqfuygx/I3uHEKPY7p08u8FXvEtnSGai07DZi5PjM6fKv8HhEnDHdOyhNjiPJmc1ffkTPURkqbrTH3O91LweUqZgBEH7O9fF3IjSVAldZzp/REhE0GGzX81I6oVme6wv/Dm+XEi2vOa31+pVvjJYuBxTS/ZDUK6IUC7YBVXuanWRh1Axw9WoL/4p2wIwX6VX/ygTwyYH01KM34jo1Q6T2CZ8pNvu3HQAiV4f8POLVVl9hdfXIAAAAASUVORK5CYII="
var newbase64Data=base64Data.replace(/data:\w*\/\w*;base64,/gm,'')
console.log("New Base 64 Data",newbase64Data)
console.log("\n\n")
console.log("Old Base 64 Data",base64Data)