question archive A strong password has following properties
Subject:Computer SciencePrice:9.82 Bought3
A strong password has following properties. i. It MUST start with Capital Letter. ii. Must have at least one special character from @,#,* at 3rd character iii. Must have at least one number at 6th character iv. Length MUST be at least 8 Write a RE for this problem.
Regex = "..[@#*].*])({5}[.*[0-9].*]).{8, }$"
Step-by-step explanation
Regex = "..[@#*].*])({5}[.*[0-9].*]).{8, }$"
^[A-Z].* starting must be a Capital l..[@#*].*] at least one special character from @, #, * at position 3
{5}[.*[0-9].*] at least one number at 6th character
{8, }$ At least 8 characters