JS regular check string must contain characters and numbers
The JS regular check string must contain characters and numbers, and the length is between 6-20
function checkStr(str) {
return /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/.test(str);
}