What should I do if I have this string and I just want to take this part of string.
Exemple : tijean 024:zFwA 204.92.0.41 Sat Feb 7 (00:01)
I just want to have "204.92.0.41" ?
Private Function GetIPAddress(strSource As String) As String
With CreateObject("VBScript.RegExp"
.Pattern = "(\d{1,3}\.){3}\d{1,3}"
GetIPAddress = .Execute(strSource).Item(0)
End With
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.