I’m working with dojo1.7 and here i’m looking for a simple regex or range/places that will validate a 10 digit phone number of dijit.form.ValidationTextBox.
I’d like to make sure that the number is exactly 10 digits, no letters, hyphens or parens or other special chars. Can someone help me out?
For exact 10 digits, you can use the RegExp
\d{10}. Here is a working example: