Skip to main content
Inspiring
July 7, 2010
Answered

RegEx Help Needed

  • July 7, 2010
  • 2 replies
  • 1978 views

Hi,


I'm awful with regular expressions most likely because I haven't spent much time writing them but I'd like to have one that does the following

Requirements

1. Must be a minimum of 7 characters

2. Must have at least 3 out 4 of the following

    2a) 1 Uppercase letter

   2b) 1 Lowercase letter

   2c) 1 Number

   2d) 1 Symbol

So I want to pass in a string, and then run it against a regex that does the above.


Any help appreciated

-ws

This topic has been closed for replies.
Correct answer Adam Cameron.

Did you google for "password validation regex" or something like that, to see how people have resolved this issue in the past?

--

Adam

2 replies

Inspiring
July 7, 2010
Adam Cameron.Correct answer
Inspiring
July 7, 2010

Did you google for "password validation regex" or something like that, to see how people have resolved this issue in the past?

--

Adam

WestSideAuthor
Inspiring
July 9, 2010

Hi,


@Adam - I did Google, but not enough.

The link turned out to be exactly what I was looking for.

Thanks again...

Inspiring
July 12, 2010

Cool, glad you got it sorted.  Sorry for the oblique response, but I reckon it's more handy to help guide people in the right direction to find the answer for themselves than to just blurt it out.

--

Adam