I have this function which works only for 10 digits.
function telValide( tel ) { var reg = new RegExp(\'^[0-9]{10}$\', \'i\'); return reg.test(tel); } <
Try it /^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/ and for more details check below links help you how validate your phone and defined specific format
/^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/
http://www.zparacha.com/phone_number_regex/
http://dzone.com/snippets/regular-expression-validate