943,791 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Unsolved
  • Views: 866
  • ASP.NET RSS
Mar 30th, 2009
0

Regular Expression Validator

Expand Post »
HI Everybody,
I am struggling with regular expression validation control.Actually my requirment is user can enter either [1-9] or [1-9] [1/2](half)like 2 1/2 value or only 2. I am struggling a lot.I got one expression.But i wont allow the user to enter only number.Its asking 1/2 also.The expression is ^\d* [1]\/{1}[2]$.

I am expecting quick reply and can anybody solve my problem.


Thanks and regards
Nithiyanandhan S
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
nithysony is offline Offline
4 posts
since Feb 2007
Apr 1st, 2009
0

Re: Regular Expression Validator

Hi,

Try the regular expression as [0-9]+
Let me know if it works..
Reputation Points: 10
Solved Threads: 6
Light Poster
vizy is offline Offline
36 posts
since Dec 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: Page size propery from javascript
Next Thread in ASP.NET Forum Timeline: Table adapters - Is it necessary for linking or reference tables





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC