Hello, I do not understand why she gets out everything is
m.forEach((match, groupIndex) => { if(groupIndex == 1){/* console.log('===Found match, group '+groupIndex+':'+match);*/ /*eval('ArrElem'+E+'_lvl_2['+I+'] = '+match)*/} }); the console is working and eval is not. This error refers to the beginning of the line, but as I understand it from eval, here is the cycle in which it is involved
Elem_lvl_1.output - 'css ("background-image")' E is just a number for dynamic variables.
for (var I = 0;I <= Tag_L-1; I++) { var regex = /"([^"]+)"/gi, str = eval('ArrElem'+E+'_lvl_2['+I+'] = Elem_lvl_1.tag.eq('+I+').'+Elem_lvl_1.output), m; while ((m = regex.exec(str)) !== null) { if (m.index === regex.lastIndex) { regex.lastIndex++; } m.forEach((match, groupIndex) => { if(groupIndex == 1){/* console.log('===Found match, group '+groupIndex+':'+match);*/ /*eval('ArrElem'+E+'_lvl_2['+I+'] = '+match)*/} }); }}