Groups | Blog | Home
all groups > dotnet general > november 2004 >

dotnet general : RegularExpressionValidator


Stanley J Mroczek
11/6/2004 10:03:02 PM
how to i check if a textbox is only numeric? don't care about lenght
ie 741254
and also for a ssn xxx-xx-xxx
thanks
Shiva
11/7/2004 7:42:42 PM
For number-only check, this should work: ^\d*$

For SSN, check out http://www.regexlib.com/ It has many reg ex variants.

"Stanley J Mroczek" <StanleyJMroczek@discussions.microsoft.com> wrote in
message news:9EB707E9-92AA-4F11-8504-DA0E078A8EAC@microsoft.com...
how to i check if a textbox is only numeric? don't care about lenght
ie 741254
and also for a ssn xxx-xx-xxx
thanks
stan

AddThis Social Bookmark Button