JSFiddle - React, Tailwind, and code Playground

JavaScript

var strInput = '42, "ich bin, text1", "ich bin, text2", 44, 7, 3, 99, "ich bin, text3"';

var patt=/([a-zA-Z0-9]+|"[a-zA-Z0-9\s,]+"),?/ig;


var result = patt.exec(strInput);
while(result) {
    alert(result[1]);
    result = patt.exec(strInput);
}