Reputation: 4763
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)
Thanks.
Upvotes: 0
Views: 134
Reputation: 3631
I fear I might be missing something but won't this do it
^[0-9]{5,12}$
Upvotes: 1
Reputation: 4729
You could only allow 5-12 numbers like this:
ValidationExpression="^\d{5,12}$"
\d stands for [0-9]
Upvotes: 4