Link to home
Start Free TrialLog in
Avatar of Lia Nungaray
Lia NungarayFlag for United States of America

asked on

How to enter Regex code

What is the code in regex to ensure user enters a minimum of 6 digits and a maximum of 6 digits? I currently have


But I don't get the error message indicating that I have entered more than 6 digits.
Avatar of Dr. Klahn
Dr. Klahn

Do you require leading zero suppression, i.e., is 000005 as valid a number as 472625?
Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lia Nungaray


No, just 6 digits, 0 - 9, leading zeros included. Thanks.
Did you see my solution?
Thanks Terry! Was on vacation for a few weeks, hadn't logged in to close.