Use RegEx for password evaluation

Should provide a considerable speed improvement when generating a
password. Although, arguably, the routine was fast enough as it was. But
still...