Precious
As such, the syntax of RegEx is complex and also not user friendly... I
always want somebody's help whenever I get trouble in RegEx.
I never use the RegEx, personaly I find it complex and afterwards unreadable
special for others.
I would do in a way it like this.
\\\\
Dim Pingstring As String = "Packets: Sent = 4, Received = 0, Lost = 13
(100% lost)"
Dim PingStart As Integer
Dim PingEnd As Integer
PingStart = Pingstring.IndexOf("Sent =") + 6
PingEnd = Pingstring.IndexOf(",")
MessageBox.Show(Pingstring.Substring(PingStart, PingEnd -
PingStart))
PingStart = Pingstring.IndexOf("Received =", PingEnd) + 10
PingEnd = Pingstring.IndexOf(",", PingStart)
MessageBox.Show(Pingstring.Substring(PingStart, PingEnd -
PingStart))
PingStart = Pingstring.IndexOf("Lost =", PingEnd) + 6
PingEnd = Pingstring.IndexOf("(", PingStart) - 1
MessageBox.Show(Pingstring.Substring(PingStart, PingEnd -
PingStart))
////
But I do not know if that is a sollution for your problem?
Cor