I want to write a regular expression for the password validation in python where it contains at least one upper case character[A-Z], at least one number[0-9], and would have a length of exactly 8 characters.
I tried this one, but somehow it is not working, can someone please help?
import re
match=re.fullmatch('[(A-K)+(0-9)+(A-Z0-9a-z@)+]{8}','bAlaji12')
if match!=None:
print(match.group())
else:
print('No Match found')