in reply to Re: Regex Match for 3 repeated word characters
in thread Regex Match for 3 repeated word characters

Abigail is correct and as such is my time for fun with math (woohoo!).

Number of possible passwords lost by forcing one character to be alpha +: 1111100000000 Number of possible passwords lost by forcing one character to be numer +ic: 9.92461065750669e+16 Number of possible passwords lost by forcing at least one character to + be alpha and one to be numeric: 9.92472176750669e+16
Hmmm...that's quite a few passwords.

Updated: Doing math after 10PM isn't one of my strong points.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
Re: Re: Re: Regex Match for 3 repeated word characters
by jryan (Vicar) on May 08, 2003 at 05:22 UTC

    The number isn't quite that high. Consider:

    Total Possible - Actual Possible = Total Lost (36^8 + 36^9 + 36^10 + 36^11 + 36^12) - ((36^6 + 36^7 + 36^8 + 36^9 + +36^10)*10*26) = TL 36^6 * ((36^2 + 36^3 + 36^4 + 36^5 + 36^6) - ((36^0 + 36^1 + 36^2 + 36 +^3 + 36^4)*10*26)) = TL 36^6 * (2,238,976,080 - 449,177,300) = TL 3,896,002,369,298,350,080 = Total Lost

    Although 19 digits is hardly a trivial amount (-: