Comment CAPTURES (Score 0) 516
If RegXPChecker("^" & cmdPrefix & "rejoin (?<item>.+)", Message) Then
re = New Regex("^" & cmdPrefix & "rejoin (?<item>.+)")
mt = re.Match(Message)
item = mt.Groups("item").ToString
SendInfo("PART :" & item, SendBytes, tnSocket)
SendInfo("JOIN :" & item, SendBytes, tnSocket)
Return True
End If
Simple vb.net regex capture. same logic can be applied to other captures.
re = New Regex("^" & cmdPrefix & "rejoin (?<item>.+)")
mt = re.Match(Message)
item = mt.Groups("item").ToString
SendInfo("PART
SendInfo("JOIN
Return True
End If
Simple vb.net regex capture. same logic can be applied to other captures.