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
You can try it-
/^\d*$/
To match with white space-
/^[\s\d\s]*$/