[regex-coach] Greetings and a puzzle
Edi Weitz
edi at agharta.de
Tue Sep 27 13:12:40 UTC 2005
Hi!
On Tue, 27 Sep 2005 08:27:26 -0400, Frank <lists at frankmarion.com> wrote:
> Hi, I'm new to the list. I was looking for a nice regex list, and
> found this one.
This is not a general regex list, it is specifically for the "Regex
Coach" application.
> A programmer wants to test a password, and he wants to do it in ONE
> expression. Here are the criteria for a well formed password
>
> 1) Minumum of eight characters in length
> 2) Two words [a-z_] are required
> 3) Two digits [0-9] are required.
(?=.*[a-z_].*[a-z_])(?=.*[0-9].*[0-9]).{8,}
Cheers,
Edi.
More information about the regex-coach
mailing list