P
Paulo Reichert
I have a quite strange problem:
I have several regular expressions like this one: ^\w{1,50}$
If I use this regular expression in the following code:
Regex rx = new Regex(@"^\w{1,50}$");
Console.WriteLine(rx.IsMatch("Aéiou");
It returns true. If I use this same regular expression with the
RegularExpressionValidator, I can't insert accented characters and doesn't
allow the user to submit the form.
I would like to know which differences exists between the
RegularExpressionValidator and the Regex.
Any help is good. Thanks in advance.
Paulo
I have several regular expressions like this one: ^\w{1,50}$
If I use this regular expression in the following code:
Regex rx = new Regex(@"^\w{1,50}$");
Console.WriteLine(rx.IsMatch("Aéiou");
It returns true. If I use this same regular expression with the
RegularExpressionValidator, I can't insert accented characters and doesn't
allow the user to submit the form.
I would like to know which differences exists between the
RegularExpressionValidator and the Regex.
Any help is good. Thanks in advance.
Paulo