Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
ValidationExpression="^[0{10,}]|[1{10,}]|[2{10,}]|[3{10,}]|[4{10,}]|[5{10,}]|[6{10,}]|[7{10,}]|[8{10,}]|9{10,}|[0-9]{10,12}"

Ex:-9720077967
this one enter
but 8791167545
not enter
it means
condiiton not valid.

ex is valid becoz 9{10,} this write if [8{10,}] same as 9 then
any number not enter this text box .


plz help solve this problem.
Posted

1 solution

What do you expect that to do?
Because it doesn't do it, I'm pretty sure...
[0{10,}]
Matches any one character in this list:
0
}
1
0
,
}
What it does not match is 10 zeros. That is:
0{10,}

Similarly,
[1{10,}]
will not match 10 ones...

I'm a little confused as to what you are trying to actually accept, so I can;t suggest a replacement, but I would strongly suggest you get a copy of Expresso [^] - it's free, and it examines and generates Regular expressions. It look like you need it...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900