Using regular expressions, write a password validation function that takes a file (passwords.txt) containing comma separ
Posted: Sun Jul 10, 2022 11:31 am
Using regular expressions, write a password validation function that takes a file (passwords.txt) containing comma separated passwords. You are required to validate whether each password is valid or not output back only the valid passwords to another file (valid.txt). Following are the criteria for checking the password: At least 2 letters between [a-z] At least 3 numbers between [0-9] At least 1 letter between [A-Z] At least 1 special regex character Minimum length of password 10 Passwords cannot include the underscore () or the backslash (\) characters