The following regular expression can be used to match a string whose length is at least 6, contains at least one digit and contains at least one lower case or upper case alphabet
(?=^.{6,}$)(?=.*\d)(?=.*[a-zA-Z])
However, I think it is good idea to avoid spaces in the string, in which case the following regular expression can be used
(?=^[^\s]{6,}$)(?=.*\d)(?=.*[a-zA-Z])
It can be tested on line here
http://regexhero.net/tester/[
^]