When a user submits a form, I need to make sure that the input contains at least the minimum number of digits. The problem is that I donβt know what format the input will be. The numbers probably won't be on the line, and can be separated by letters, punctuation, spaces, etc. I don't care what the rest of the string is.
I would like to test this with RegularExpressionValidator, but I'm not quite sure how to write a regex.
I guess this will look like a regular expression for a phone number, but the phone number at least has some common formats.
source share