0

I've two required fields on my form which I have made required using a required field validator.

I'm also looking to make the two text boxes only accept numeric input. Textbox 1 must be 7 digits only and textbox 2 has to be 6 digits only .

What would be the regular expressions for these?

1 Answer 1

5

7 digits: ^\d{7}$

6 digits: ^\d{6}$

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.