Take the 2-minute tour ×  I need help to combine the following
two regular expressions:  1.ValidationExpression="[^\s]{5,12}" :
(5-12 non-blank characters) 2.ValidationExpression="^[0-9]+$"
: (Only integers)   share|improve this question Can you give a
couple of examples on what the string is that your trying to
match and what the result should be? –  sQVe Aug 29 '12 at 8:14
When a user is typing I would like to force 5-12 characters
while those characters must be integer. –  Eyal Aug 29 '12 at
8:17 add comment  2 Answers  You could only allow 5-12 numbers
like this:   \d stands for [0-9]  share|improve this answer Do I
need to use two different expressions? –  Eyal Aug 29 '12 at
8:24 @Eyal: No, this regex alone is sufficient. After all, a
digit is a non-blank character. –  Tim Pietzcker Aug 29 '12 at
8:25 Works! Thank you. –  Eyal Aug 29 '12 at 8:29 add comment  I
fear I might be missing something but won't this do it
share|improve this answer add comment  Your Answer