/([0-9]+[a-zA-Z]+[\.@#\$%\^&\*\(\)\[\]\<\>\?\\\/\|\-~`\+\=\,\r\n\:\'\"]+)|/
var str1='sds1--';
function checkstr(str1){
if(/\d+/.test(str1)){
if(/[a-zA-Z]+/.test(str1)){
if(/[\.@#\$%\^&\*\(\)\[\]\<\>\?\\\/\|\-~`\+\=\,\r\n\:\'\"]+/.test(str1)){
return true;
}
return false;
}
return false;
}
return false;
}
var reg = /^[\w\!\.@#\$%\^&\*\(\)\[\]\<\>\?\\\/\|\-~`\+\=\,\r\n\:\'\"。,;……!¥\{\}]+$/;
var str = "abcd&%%*\.;";
console.log(reg.test(str));