Parse a string into a specific structure object using js and regular expressions

let str = "\"\"\"\", \"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"" "

// 
let obj = {
    text:"",
    arr:[
        {
            value: 0,
            label: ""
        },
        {
            value: 1,
            label: ""
        },
        {
            value: 2,
            label: ""
        }
    ]
}

let str = "\"\"\"\", \"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"";
let arr=str.split(/"\s*[,]\s*"|"/);
let obj={};
let btns=[];
arr.forEach(function(item,index){
    if(index===0){
        obj.text=item;
    }else if(item){
        btns.push({value:index-1,label:item});
    }
});
obj.arr=btns;
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3294e-2b18b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3294e-2b18b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?