Jin Kazama Honorary Member Rep 0 0 0 Rep 35 Vouches 0 0 0 Vouches 0 Posts 391 Likes 248 Bits 25,772 4 YEARS 4 YEARS OF SERVICE OP Feb 8, 2023 #2 Please if anyone knows how to filter the combo and get only those passwords which has " Atleast 1 letter and 1 number " Help would be really appreciated and I really need it.
Please if anyone knows how to filter the combo and get only those passwords which has " Atleast 1 letter and 1 number " Help would be really appreciated and I really need it.
kittychire Premium member Premium Rep 0 0 0 Rep 0 Vouches 0 0 0 Vouches 0 Posts 1 Likes 0 Bits 0 5 YEARS 5 YEARS OF SERVICE Feb 9, 2023 #3 ````import repasswords = ["abc123", "password123", "12345", "abcdef"]filtered_passwords = [password for password in passwords if re.search(r'[a-zA-Z]+', password) and re.search(r'\d+', password)]print(filtered_passwords) ````
````import repasswords = ["abc123", "password123", "12345", "abcdef"]filtered_passwords = [password for password in passwords if re.search(r'[a-zA-Z]+', password) and re.search(r'\d+', password)]print(filtered_passwords) ````