JSFiddle - React, Tailwind, and code Playground

JavaScript

var testsentence = 'This "is" a wonderful "sentence" to "test" "stuff"';

console.log(testsentence.match(/"[^"]+"/g));