Regular expression
I am trying to do a check on a user input. I would like to check to see if a user enters a valid ip number. I would like to do something like: BuiltIn.StrMatches(ip, "10.10." + [0-9]+ + "." +[0-9]+). Where ip in the value of the user's IP address and I would like to try to String match is with the regular expression "10.10." + [0-9]+ + "." +[0-9]+, or something along those lines. I want to verify that the first number is 10 then a period then 10 again then a three digit number or less then a period then another three digit number or less.
Other way around... if "ip" represents what the user entered, that needs to be the SECOND parameter for StrMatches
https://support.smartbear.com/testcomplete/docs/reference/program-objects/builtin/strmatches.html
You have the right general idea. Take a look at that article, get your parameters in the right place and make sure you're using proper regular expression syntax.