In B4A this routine returns True but in B4I it returns False
Should return true (and does in B4A) for any number entered between 1 and 8100
Should return true (and does in B4A) for any number entered between 1 and 8100
B4X:
'reg = ^([1-9])|([1-9][0-9])|([1-9][0-9][0-9])|([1-7][0-9][0-9][0-9])|([8][0][0-9][0-9])|([8][1][0][0])$
'txt = "3221"
Sub isValid(reg As String, txt As String) As Boolean
If reg = "" Then
Return True
End If
Return Regex.IsMatch(reg,txt)
End Sub