search

Home  >  Q&A  >  body text

写个正则把 ("voiceFamily\tcss", "voiceFamily")括号替换成{}

/^()$/g这样有什么问题

巴扎黑巴扎黑3024 days ago982

reply all(1)I'll reply

  • 面对疾风吧

    面对疾风吧2016-11-08 14:54:27

    var s = '("voiceFamily\tcss", "voiceFamily")';
    s.replace(/^\((.*)(?=\))\)$/,'{$1}');


    reply
    0
  • Cancelreply