Hello, everybody,
I’m testing a string for a pattern. The pattern: “1???”.
var_string.Contains(“1???”)
What I expect. All strings that have six digits and start with a 1 should be found.
Hello, everybody,
I’m testing a string for a pattern. The pattern: “1???”.
var_string.Contains(“1???”)
What I expect. All strings that have six digits and start with a 1 should be found.
Hey, try these:
System.Text.RegularExpressions.Regex.isMatch(var_String, “1\d{5}”)
If should should not contain anything else:
System.Text.RegularExpressions.Regex.isMatch(var_String, “^1\d{5}$”)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.