affected_entity := '受影响实体</span><span class="ant-table-column-sorter"></span></div></span></th></tr></thead><tbody class="ant-table-tbody"><tr data-row-key="0" class="ant-table-row ant-table-row-level-0"><td class="ant-table-row-cell-break-word" style="text-align:center;">1</td><td>CPE:/a:vim:vim:-:::</td></tr><tr data-row-key="1" class="ant-table-row ant-table-row-level-0"><td class="ant-table-row-cell-break-word" style="text-align:center;">2</td><td>CPE:/a:vim:vim:5.6:::</td></tr><tr data-row-key="2" class="ant-table-row ant-table-row-level-0"><td class="ant-table-row-cell-break-word" style="text-align:center;">3</td><td>CPE:/a:vim:vim:6.1:::</td></tr><tr data-row-key="3" class="ant-table-row ant-table-row-level-0"><td class="ant-table-row-cell-break-word" style="text-align:center;">4</td><td>CPE:/a:vim:vim:6.3:::</td></tr><tr data-row-key="4" class="ant-table-row ant-table-row-level-0"><td class="ant-table-row-cell-break-word" style="text-align:center;">5</td><td>CPE:/a:vim:vim:6.4:::</td></tr></tbody></table></div></div></div></div></div></div>'

//这个只能匹配到一个
compileRegex := regexp.MustCompile("</td><td>(.*?)</td></tr>")
matchArr := compileRegex.FindStringSubmatch(affected_entity,-1)
//这个可以匹配到所有
compileRegex := regexp.MustCompile("</td><td>(.*?)</td></tr>")
matchArr := compileRegex.FindAllString(affected_entity,-1)

正则匹配测试界面