"ipsum" dolor "sit".[ipsum, sit].var s = 'Lorem "ipsum" dolor "sit" amet';
console.log(s.match(/"(.+)"/)[0]);
str.split('"').filter((n, i) => i & 1)
// или
Array.from(str.matchAll(/"([^"]*)"/g), n => n[1])
// или
(function get(reg) {
const m = reg.exec(str);
return m ? [ m[0].slice(1, -1), ...get(reg) ] : [];
})(/".*?"/g)
// или
Array.prototype.reduce.call(str, (acc, n) => {
if (n !== '"') {
acc[1]?.push(n);
} else if (acc[1]) {
acc[0].push(acc[1].join(''));
acc[1] = null;
} else {
acc[1] = [];
}
return acc;
}, [ [], null ])[0]