Forum Discussion

4m4d3u5's avatar
4m4d3u5
Contributor
5 years ago
Solved

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. 

4 Replies