Can someone help me create this regex. I need it to check to see if the string is either entirely whitespace(empty) or if it only contains positive whole numbers. If anything el
^\d+([\.\,][0]{2})?$
I found this worked for me. Allow any whole number, but only a decimal of .00
Pass
Fails
Try it at http://regexpal.com/