I am using RegExRx to validate and create regular expression statements. I am running into something that I am not sure how to address.
My Expression matches the first octet of a valid IPv4 Address. This works like a champ in the RegExRX tool and matches immediately after I type for example 100.
My Xojo code works but is a character space behind meaning I have to type an extra character after the dot to get my Xojo RegExMatch. I made sure to match my options the same as I had in the RegExRx tool but didn’t matter.
IPAddressFirstOctet_Check_RegEx = New RegEx IPAddressFirstOctet_Check_RegEx.options.caseSensitive = true IPAddressFirstOctet_Check_RegEx.options.Greedy = false IPAddressFirstOctet_Check_RegEx.options.TreatTargetAsOneLine = false IPAddressFirstOctet_Check_RegEx.options.CaseSensitive = False IPAddressFirstOctet_Check_RegEx.SearchPattern = "^([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-2][0-3])\\."
Thank you very much in advance!