JavaScript Regex Global Match Groups

前端 未结 7 741
感动是毒
感动是毒 2020-11-28 10:50

Update: This question is a near duplicate of this

I\'m sure the answer to my question is out there, but I couldn\'t find the words to express it suc

相关标签:
7条回答
  • 2020-11-28 11:44

    this regex works but with defined characters...

    var input = "'Warehouse','Local Release','Local Release DA'";
    
    var r =/'[\w\s]+'/gi;
    console.log(input.match(regex));
    
    0 讨论(0)
提交回复
热议问题