Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want regular expression that allowed only 6 digit & not allowed leading zero like
0,01 but allowed 10,20 & only allowed 111111 (6 digit).
Posted

1 solution

This is a bit rough, because you don't describe it well:
[1-9][0-9,]{0,5}


Get a copy of Expresso [^] - it's free, and it examines and generates Regular expressions.
 
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