PDA

Click to See Complete Forum and Search --> : [1.0/1.1] Regular Expression validator not working


contactumair
Oct 6th, 2006, 08:42 PM
I am trying to validate the text field to check it contains only positive integers but its not working i have tries several regular expressions.Can any one send me a valid regular expression to check that the text fields contain only positive numbers.
Please help ma ASAP

Negative0
Oct 6th, 2006, 08:57 PM
Have you tried:

new Regex(@"^\d+$")

Fromethius
Oct 11th, 2006, 06:53 PM
if textbox.text > 0?