Generate random passwords matching a regular expression