4m4d3u5
6 years agoContributor
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]+)...
- 6 years ago
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.