JSFiddle - React, Tailwind, and code Playground

HTML

<textarea id="foo"></textarea>
<input type="button" id="bar" value="match" />
<div id="res" </div>

JavaScript

//$('#foo').val('sdqf "un"f zeaezf a \n\'deux\' zeafzf "trois" \nAkjhlkjh lkjh lkjh \'quatre \' dfqsdf')
$('#bar ').on('click', function(){
    matches =$('#foo ').val().replace(/(\r|\n)/g, '').match(/(['"]).+?\1/g);
    $('#res').html(matches.join('<br/>'))
})