I need a regular expression to match exact 11 digits(no spaces, no alphabets). Valid values are
- 12345678987 - Valid
- 123456789876 - not valid because it has more than 11 digits
- 1234 5678987 - Not valid (since it has space)
- 11223344556 - valid
- A1234B5678987 - not valid (because it has alphabets)
I tried the below expression but no luck var aa = new RegExp("^[0-9]{11}); var bb = new RegExp("/d{11});( this will give valid to even 1,2,3,4)