Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 112

Need help for " How to Filter Combo to get At least 1 letter and 1 number "

by Jin Kazama - 28 October, 2023 - 01:37 PM
This post is by a banned member (Jin Kazama) - Unhide
363
Posts
86
Threads
6 Years of service
#1
(This post was last modified: 28 October, 2023 - 01:39 PM by Jin Kazama. Edited 1 time in total.)
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.
[Image: Screenshot-2024-08-28-210805.png]
This post is by a banned member (kittychire) - Unhide
144
Posts
79
Threads
2 Years of service
#2
(This post was last modified: 28 October, 2023 - 02:34 PM by kittychire. Edited 1 time in total.)
````import re passwords = ["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) ````
[Image: 6z9XkcK.png]

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)