returning regex matches as lists
Jonathan Lukens
jonathan.lukens at gmail.com
Fri Feb 15 14:07:21 EST 2008
I am in the last phase of building a Django app based on something I
wrote in Java a while back. Right now I am stuck on how to return the
matches of a regular expression as a list *at all*, and in particular
given that the regex has a number of groupings. The only method I've
seen that returns a list is .findall(string), but then I get back the
groups as tuples, which is sort of a problem.
Thank you,
Jonathan
More information about the Python-list
mailing list