我想从这些数字中提取webbrowser
<tr style="font-size: 14pt;">
<td align="center">1</td>
<td align="center">2</td>
<td align="center">3</td>
<td align="center">4</td>
<td align="center">5</td>
</tr>
textbox.text = 12345
答案 0 :(得分:1)
您可以使用正则表达式执行此操作,但不建议将其解压缩如下:
Dim elemcol As HtmlElementCollection = Webbrowser1.Document.GetElementsByTagName("td")
For i As Integer = 0 To (elemcol.Count - 1)
Textbox1.Text &= elemcol(i).InnerHTML ' here do whatever you want with its content
Next i