Get all strings matching given RegExp

Jeff jeffober at
Thu Apr 3 08:08:13 EDT 2008

I don't think there is any built in way.  Regular expressions are
compiled into an expanded pattern internally, but I don't think that
it is anything that would be useful for you to directly access.

If you are interested in a lot of work, you could do something with
PLY and write an re parser that would expand it into a series of
possible textual matches :)

More information about the Python-list mailing list