OT: regular expression matching multiple occurrences of one group

pinkisntwell pinkisntwell at gmail.com
Mon Nov 9 14:53:00 CET 2009

How can I make a regular expression that will match every occurrence
of a group and return each occurrence as a group match? For example,
for a string "-c-c-c-c-c", how can I make a regex which will return a
group match for each occurrence of "-c"?

More information about the Python-list mailing list