This checks if one or more numbers are present in the string, if one ore more letters are in the string, and if the length is higher than 5.
is there a way to join them in a single regex?
var aliascheck = $('#alias').val();
if (!/\d/.test(aliascheck) || !/[a-z]+/.test(aliascheck) || (aliascheck.length < 5)){
alert('you need to enter at least a letter, a number...);
}