471,056 Members | 1,497 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,056 software developers and data experts.

RegularExpressionValidator

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
Jul 21 '05 #1
1 1337
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" <St*************@discussions.microsoft.com> wrote in
message news:9E**********************************@microsof t.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
Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Ricardo Corsi P. Cesar | last post: by
3 posts views Thread by DC | last post: by
reply views Thread by Matt Morris | last post: by
3 posts views Thread by tshad | last post: by
reply views Thread by venkat Murthy | last post: by
1 post views Thread by franz | last post: by
1 post views Thread by John Yopp | last post: by
4 posts views Thread by simonZ | last post: by
4 posts views Thread by =?Utf-8?B?Y3VyaW91cw==?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.