This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
Originally posted by James Sabre: "(?=(.*[0-9].*){2}.*)(?=(.*[a-z].*){2}.*)(?=(.*[A-Z].*){2}.*)([0-9a-zA-Z]{6})"
That doesn't match the second example, as far as I can tell?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
yang tao
Greenhorn
Joined: Sep 25, 2008
Posts: 16
posted
0
thank you for you help
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32675
4
posted
0
You're welcome
For the benefit of future generations of learners, please post what you used in the end.
since you don't need all the dot-stars, which makes it even slightly more readable! ; )
Yes. Much better. I had not taken the logic far enough having failed to deduce that since each of the 'look-a-heads' dictate two or more characters from their acceptance class then one just has to make sure that there are 6 characters total. Nice.
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
posted
0
Originally posted by James Sabre:
I had not taken the logic far enough having failed to deduce that since each of the 'look-a-heads' dictate two or more characters from their acceptance class then one just has to make sure that there are 6 characters total.
Perhaps you know understand what I mean by "clever"...