D
D.J Bonlay
Hi,
I am testing a regex string value and I am getting discrepancies in the resuls
If I use the following string in C# for a validation control:
RegularExpressionValidator3.ValidationExpression = "(?=.*\\d)[\\w]{8,8}";
I get different results than what I expect and from the results from regex
tester programs such as Expresso. I am checking for a string 8 characters
long that has a digit it.
here are some vectors to test the string they pass with regex testers such
as Expresso etc etc.. but it fails in my code.. I do not understand since
the Regex syntax is the same
1aaaaaaa passes fails in mycode
a1aaaaaa passes fails in mycode
aa1aaaaa -- --
aaa1aaaa -- --
aaaa1aaa -- --
aaaab1bb -- --
aaaabb1b -- --
aaaabbb1 passes fails
1111aaaa passes passes
aaaa1111 passes fails in my code
Can anyone help me - thanks
I am testing a regex string value and I am getting discrepancies in the resuls
If I use the following string in C# for a validation control:
RegularExpressionValidator3.ValidationExpression = "(?=.*\\d)[\\w]{8,8}";
I get different results than what I expect and from the results from regex
tester programs such as Expresso. I am checking for a string 8 characters
long that has a digit it.
here are some vectors to test the string they pass with regex testers such
as Expresso etc etc.. but it fails in my code.. I do not understand since
the Regex syntax is the same
1aaaaaaa passes fails in mycode
a1aaaaaa passes fails in mycode
aa1aaaaa -- --
aaa1aaaa -- --
aaaa1aaa -- --
aaaab1bb -- --
aaaabb1b -- --
aaaabbb1 passes fails
1111aaaa passes passes
aaaa1111 passes fails in my code
Can anyone help me - thanks