G
Guest
I am trying to use the VS2003 regular expression Find tool to test regular
expressions for use in a ASP.NET validator. The results I am getting are
inconsistent . What works in VS does not always work in ASP.NET and vice
versa. For example:
[0-9]+([\.]{0,1})([0-9]*)
This expression, in an ASP.NET reg exp validator identifies positive real
numbers perfectly. But, when used in the VS Find utility against a text file
of candidate values (see below) it finds none!
0.0
0
1
1.
1.0
99
99.
99.999
99.a
a
99999
-99999
I developed the above reg ex because the documented shorthand for it
n)
does not work in ASP.NET. Am I lost? Or are these two implementations
quite different?
expressions for use in a ASP.NET validator. The results I am getting are
inconsistent . What works in VS does not always work in ASP.NET and vice
versa. For example:
[0-9]+([\.]{0,1})([0-9]*)
This expression, in an ASP.NET reg exp validator identifies positive real
numbers perfectly. But, when used in the VS Find utility against a text file
of candidate values (see below) it finds none!
0.0
0
1
1.
1.0
99
99.
99.999
99.a
a
99999
-99999
I developed the above reg ex because the documented shorthand for it
does not work in ASP.NET. Am I lost? Or are these two implementations
quite different?