Re: OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread Gabriel Genellina
En Mon, 09 Nov 2009 12:59:53 -0300, Jon Clements escribió: On Nov 9, 1:53 pm, pinkisntwell wrote: 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 whic

Re: OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread J�rgen Exner
pinkisntwell wrote: >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"? Where is the problem? Th

Re: OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread sln
On Mon, 9 Nov 2009 05:53:00 -0800 (PST), pinkisntwell wrote: >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 oc

Re: OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread Jon Clements
On Nov 9, 1:53 pm, pinkisntwell wrote: > 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"?

Re: OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread Diez B. Roggisch
pinkisntwell schrieb: 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"? Why is this flagged "OT"

OT: regular expression matching multiple occurrences of one group

2009-11-09 Thread pinkisntwell
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"? -- http://mail.python.org/mailman/listinfo/python