J
JavadR
Guest
hi guys
i have 2 textbox , i want via check regex match copy ip text in ( property | 104.223.22.67 | Operating system | Windows ) from textbox 1 to textbox 2
my text:
Status | Name | Type | Operating system | IP | NetBIOS name | NetBIOS group | Manufacturer | MAC address | User
property | 104.223.22.62 | Operating system | Windows
alive | WIN-3Q9P1I8JN6A | | | 104.223.22.67 | WIN-3Q9P1I8JN6A | WORKGROUP | | 00:00:00:00:00:00 |
property | 104.223.22.67 | Operating system | Windows
property | 104.223.22.61 | Operating system | Windows
property | 104.223.22.63 | Operating system | Windows
my code:
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Dim reg_exp As New Regex("\b[| Operating system | Windows]\b")
If reg_exp.IsMatch(TextBox1.Text) Then
TextBox2.BackColor = Color.Green
Else
TextBox2.BackColor = Color.Yellow
End If
End Sub
Continue reading...
i have 2 textbox , i want via check regex match copy ip text in ( property | 104.223.22.67 | Operating system | Windows ) from textbox 1 to textbox 2
my text:
Status | Name | Type | Operating system | IP | NetBIOS name | NetBIOS group | Manufacturer | MAC address | User
property | 104.223.22.62 | Operating system | Windows
alive | WIN-3Q9P1I8JN6A | | | 104.223.22.67 | WIN-3Q9P1I8JN6A | WORKGROUP | | 00:00:00:00:00:00 |
property | 104.223.22.67 | Operating system | Windows
property | 104.223.22.61 | Operating system | Windows
property | 104.223.22.63 | Operating system | Windows
my code:
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
Dim reg_exp As New Regex("\b[| Operating system | Windows]\b")
If reg_exp.IsMatch(TextBox1.Text) Then
TextBox2.BackColor = Color.Green
Else
TextBox2.BackColor = Color.Yellow
End If
End Sub
Continue reading...