matching any number of any character

Lyn A Headley laheadle at
Mon Aug 23 02:19:58 CEST 1999

To do it, I want to use the regex module, heretical though that may
be.  I think my brain is missing a piece, because I can't seem to
accomplish such a task.  I thought this would work:

>>> import regex
>>> rx = regex.compile('\(.\|\n\)+')
>>> rx.match('abc')

but I wanted 'abc'!

little help?


More information about the Python-list mailing list