How to print all expressions that match a regular expression

Grant Edwards invalid at invalid.invalid
Sun Feb 7 03:44:27 CET 2010

On 2010-02-06, Roy Smith <roy at> wrote:

>> I am a fresh man with python. I know there is regular expressions in
>> Python. What I need is that given a particular regular expression,
>> output all the matches.

> Please enumerate all the strings which match ".*".  Use additional sheets 
> of paper if needed.

And be sure to show your work.


More information about the Python-list mailing list