How to print all expressions that match a regular expression
Steve Holden
steve at holdenweb.com
Sun Feb 7 20:19:53 EST 2010
Steven D'Aprano wrote:
> On Sun, 07 Feb 2010 03:53:49 +0100, Alf P. Steinbach wrote:
>
>>> "Given the function hashlib.sha256, enumerate all the possible inputs
>>> that give the hexadecimal result
>>> 0a2591aaf3340ad92faecbc5908e74d04b51ee5d2deee78f089f1607570e2e91."
>> I tried some "parrot" variants but no dice. :-(
>
> Oh, everybody expects parrots! That's not unexpected -- as a clue, I
> wrote that "the message is predictable for being totally unexpected".
>
> The input was "Nobody expects the Spanish Inquisition!", which is another
> Monty Python catchphrase.
>
>
Bugger - Got everything except the trailing exclamation mark ...
regards
Steve
--
Steve Holden +1 571 484 6266 +1 800 494 3119
PyCon is coming! Atlanta, Feb 2010 http://us.pycon.org/
Holden Web LLC http://www.holdenweb.com/
UPCOMING EVENTS: http://holdenweb.eventbrite.com/
More information about the Python-list
mailing list