capturing multiple groups?

Tom Baker bktoa23 at
Sun Jul 22 10:50:28 EDT 2001

What is the required syntax to match and save repeating groups?  ie.

Have:  @12X12Y12Z@
Want:  ['12X' '12Y' '12Z']

My re of  re.compile("@(12.)*@") matches but only saves '12Z', and that is
exactly what the manual says it should do!!!  I'm sure I did this sort of
thing in Perl before but I've not been able to come across the correct
python syntax.

Thanks in advance,

More information about the Python-list mailing list