Javascript String CheckTelephone()

Description

Javascript String CheckTelephone()

String.prototype.CheckTelephone = function(){
    var reg = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/;
    return reg.test(this);
};



PreviousNext

Related