const str = 'shflehoshofwe"label_name":"历史"lshdliflwefoiewoilfjnwo'; const regex = /"label_name":"(.+?)"/; const match = str.match(regex); if (match) { const value = match[0]; console.log(value); // 输出:"label_name":"历史" } else { console.log("未匹配到字符串"); }