RegEx For Accepting No Greater Than 0 [Resolved]

Posted by Ravimakhija88 under JavaScript on 5/23/2011 | Points: 10 | Views : 6976 | Status : [Member] | Replies : 4
Hi Friends,

I want Regular Expression which should accept numbers greater than zero. i have searched om internet but i failed to found for the same.


Thanks
Ravi




Responses

Posted by: Sushilkumar.sush on: 5/23/2011 [Member] Starter | Points: 50

Up
0
Down

Resolved
Hi ravi,
Refer This link its will help you..
http://forums.asp.net/t/1111443.aspx/1
http://www.eggheadcafe.com/community/aspnet/17/10206779/textbox-validations.aspx
http://www.regxlib.com/DisplayPatterns.aspx?cattabindex=2&categoryId=3
Other wise use the javascript validation for cahecking the greter than 0 value

Thanks...

Sushilkumar Shinde

Ravimakhija88, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Susanthampy on: 5/23/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Use this,

"^(([0-9]*[1-9][0-9]*([.][0-9]+)?)|([0]+[.][0-9]*[1-9][0-9]*))$".


Regards,
Susan

Ravimakhija88, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ravimakhija88 on: 5/23/2011 [Member] Starter | Points: 25

Up
0
Down
hey susan thanks for you answer, can u help me little bit more. my number will not be in decimal. so plz can u gime the script for the same :)

Ravimakhija88, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Nithadeepak on: 5/23/2011 [Member] Bronze | Points: 25

Up
0
Down
Hi,
Refer this...
http://www.regxlib.com/DisplayPatterns.aspx?cattabindex=2&categoryId=3
Hope this helps you,
Thanks,

Nitha Deepak

Ravimakhija88, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response