Dim txt2 As WinForm.TextBox = e.Form.Controls("TextBox2")
dim txt3 as string ="流水号:"
用正则的方式提取TXT2中的字符串。
要求:以TXT3开头,以回车换行符结束,的字符中的,任意的数字或字母或_
Dim txt As String = txt2.text
Dim pattern As String = "[A-Za-z0-9]+"
Dim rgx = New System.Text.RegularExpressions.Regex(pattern, System.Text.RegularExpressions.RegexOptions.IgnoreCase)
For Each match As System.Text.RegularExpressions.Match In rgx.Matches(txt)
Output.Show(match.Value)
Next