JS - Check correct Phone using pattern
// Check if phone is correct (accept + - ( ) 123456789)
// @input str string to check
// @return bool
function check_phone(str) {
var phn = /^([+]*[0-9]*[-]*[(]*[)]*\s*)*$/;
if (str != undefined && str.match(phn)) return true;
else return false;
}