i need validation for phone number to accept only 12 digits and it should accept spaces and phonenumber should not start with digit 1
here is the validation i tried but here its not at all accepting 1 digit .in my case 1 should not start from first that's it.how to do?
var phonepat=/^[\s()+-]*([02-9][\s()+-]*){7,12}$/;
Validation for phone number in javascript
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Nov 24, 2013, 7:00 AM EST