Regular Expression Validator

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2007
Posts: 4
Reputation: nithysony is an unknown quantity at this point 
Solved Threads: 0
nithysony nithysony is offline Offline
Newbie Poster

Regular Expression Validator

 
0
  #1
Mar 30th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 34
Reputation: vizy is an unknown quantity at this point 
Solved Threads: 6
vizy's Avatar
vizy vizy is offline Offline
Light Poster

Re: Regular Expression Validator

 
0
  #2
Apr 1st, 2009
Hi,

Try the regular expression as [0-9]+
Let me know if it works..
Njoy koding... >>>
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC