Dim HTML As String = $"<td class="txtcentral" width="55%" height="20px" bgcolor="#FEFEFE"> Nome: FLAVIO SOUZA SOUZA </td>
<td class="txtcentral" width="45%" bgcolor="#FEFEFE"> PIS/PASEP: 123.94502.00-4 </td>"$
Log(1)
For Each Line As String In Regex.Split(CRLF,HTML)
If Line.Contains("txtcentral") Then
Log(GetEnclosed(">","<",Line).Replace(" ",""))
End If
Next
Log(2)
'Or any other way you can identify the line
For Each Line As String In Regex.Split(CRLF,HTML)
If Line.Contains("Nome:") Or Line.Contains("PIS/PASEP") Then
Log(GetEnclosed(">","<",Line).Replace(" ",""))
End If
Next
Log(3)
For Each Line As String In Regex.Split(CRLF,HTML)
If Line.Contains("Nome:") Then Log("Nome:" & GetEnclosed("Nome:","<",Line).Replace(" ",""))
If Line.Contains("PIS/PASEP:") Then Log("PIS/PASEP:" & GetEnclosed("PIS/PASEP:","<",Line))
Next
Log(4)
Dim Test As List = Array As String("Nome:","PIS/PASEP:")
For Each Line As String In Regex.Split(CRLF,HTML)
For Each S As String In Test
If Line.Contains(S) Then Log(S & GetEnclosed(S,"<",Line))
Next
Next