Helo,
with the below Code, I try to validate an IP number.
But I get an Error msg.
with the below Code, I try to validate an IP number.
But I get an Error msg.
B4X:
Sub Validate_IPNUmmer(IP_Adresse As String) As Boolean
Dim Match_IP As Matcher = Regex.Matcher("^(?:(?:25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)(?(?=\.?\d)\.)){4}$",IP_Adresse)
If Match_IP.Find = True Then
ToastMessageShow("IS IP ",True)
Return True
Else
ToastMessageShow("Is not IP", True)
Return False
End If
End Sub