I want a regular expression to validate an ASP textbox field with the minimum length of 11 characters and in the middle of the string should be a “-” sign. The sample string is: “0000-011111”. I want to validate the textbox to make sure user enters a minimum of 10 numbers with “-” sign after 4 digits using regular expressions. Please help me.
Thank you.
I want a regular expression to validate an ASP textbox field with the minimum
Share
Use
\drepresents a digit,-is a literal dash and the number in the curly brackets force the preceeding token to be present the given number of times.