我想得到下一个第一行,后跟字符串“已发布”。这是我的代码:
Dim builder As New StringBuilder()
Dim reader As New StringReader(txtOCR.Text)
While True
Dim line As String = reader.ReadLine()
If line Is Nothing Then Exit While
If Not line.ToLower().Contains("published") Then
builder.AppendLine(line)
End If
End While
txtOCR.Text = builder.ToString()
此代码获取所有行后跟字符串“已发布”,但我只想获取下第一行..