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 succinctly. I am trying to do the following with JavaScript regex:
var input = "'Warehouse','Local Release','Local Release DA'";
var regex = /'(.*?)'/g;
console.log(input.match(regex));
// Actual:
// ["'Warehouse'", "'Local Release'", "'Local Release DA'"]
// What I'm looking for (without the '):
// ["Warehouse", "Local Release", "Local Release DA"]
Is there a clean way to do this with JavaScript regex? Obviously I could strip out the '
s myself, but I'm looking for the correct way to caputre globally matched groupings with regex.