By default vscode avoids wrapping from one line to the next for HTML regex searches. Here is a workaround:
<th .*?>(.*?)\n(.*?)<div.*?>(.*?)</div>\n(.*?)</th>
Here is what the actual code looked like:<tr style="height: 20px">
<th id="0R8" style="height: 20px;" class="row-headers-background">
<div class="row-header-wrapper" style="line-height: 20px">9</div>
</th>
<td class="s3" dir="ltr">AND</td>
<td class="s4" dir="ltr">Find emails that match all of your search criteria.</td>
<td class="s3" dir="ltr">from:amy AND to:david</td>
</tr>
Notice that the <th> tag includes a <div> tag. Each is a line of text. Here is what the code does:.*? = this captures all the text, including properties, inside the brackets for <th>(.*?) = captures all text after the closing bracket and before the newline\n(.*?) = captures the newline and any hidden code. The .*? is greedy and extends past the newline to the next line.