JavaScript Regex Global Match Groups

前端 未结 7 742
感动是毒
感动是毒 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));
    

提交回复
热议问题