base64去掉前缀的正则校验

.replace(/^data:image/w+;base64,/, "")

适用于:.jpg,.jpeg,.png,.JPG,.JPEG

原文地址:https://www.cnblogs.com/moguzi12345/p/14709510.html