validation for phone number in javascript
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}$/;