I only want alphanumeric, numbers, space, dash and underscore. I am using
[\w\s-_]*
But because I have allowed spaces, a space is allowed as input, in html5 how can i validate if only spaces are entered as input.
Also is there any regular expression checking integers for 1+.
Edit:
allowing integers from 1 to any positive integers {1, 2, 3, ...}
1-2
? – Casimir et Hippolyte May 20 '13 at 10:42