How to print all expressions that match a regular expression
Steven D'Aprano
steven at REMOVE.THIS.cybersource.com.au
Sun Feb 7 21:33:12 EST 2010
On Sun, 07 Feb 2010 20:19:53 -0500, Steve Holden wrote:
> 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 ...
NOBODY EXPECTS THE TRAILING EXCLAMATION MARK!!!
--
Steven
More information about the Python-list
mailing list