Link to home
Start Free TrialLog in
Avatar of mousemat24
mousemat24

asked on

Help with reg Exp for web.config

Hi there

Hope you can help me out

In the web.config I have to add a Property called

PasswordStrengthRegularExpression

the RegExp must be

English uppercase characters (A - Z)
English lowercase characters (a - z)
Base 10 digits (0 - 9)

... and you MUST have 1 of each item i.e.

1 UpperCase char
1 LowerCare char
1 number between 0 - 9

Can someone please help me with the regexp

thanks
Avatar of kaufmed
kaufmed
Flag of United States of America image

This should do it:

^(?=[^A-Z]+[A-Z])(?=[^a-z]+[a-z])(?=[^0-9]+[0-9])[A-Za-z0-9]+$

Open in new window

Avatar of mousemat24
mousemat24

ASKER

Hi

I went to this site, added your regex to it

reg

and entered the following text, that "should" of worked, but did not

BrickWall08
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
that worked, thank you so much for your help!