正则匹配

var msg="【花皙蔻旗舰店】测试发送{购物昵称}{收货人}";

let msg=response.data.data.content;
let sign=msg.match(/^【(S+?)】/)[1];
msg = msg.replace(/^【S+】/,"");
msg=msg.substring(0,msg.length-5);
this.editMsg=msg;
原文地址:https://www.cnblogs.com/miaSlady/p/8428147.html