JSFiddle - React, Tailwind, and code Playground
by jfriend00
HTML
<div id="results"></div>
JavaScript
var input = "'Warehouse','Local Release','Local Release DA'";
var regex = /'(.*?)'/g;
var matches, output = [];
while (matches = regex.exec(input)) {
output.push(matches[1]);
}
document.getElementById("results").innerHTML = JSON.stringify(output);