1.

Generate a regular expression for the following problem statement:Password Validation: String should be 8-15 characters long. String must contain a number, an Uppercase letter and a Lower case letter.

A. ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{8,15}$
B. ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{9,16}$
C. ^(?=.[a-z])(?=.[A-Z])(?=.\d).{8,15}$
D. .{8,15}$b) ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{9,16}$c) ^(?=.[a-z])(?=.[A-Z])(?=.\d).{8,15}$d) None of the mentioned
Answer» B. ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{9,16}$


Discussion

No Comment Found