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? --

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?

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

2009-11-09 Thread Jon Clements
On Nov 9, 1:53 pm, pinkisntwell pinkisntw...@gmail.com 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

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 pinkisntw...@gmail.com 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

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

2009-11-09 Thread J�rgen Exner
pinkisntwell pinkisntw...@gmail.com 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

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 jon...@googlemail.com escribió: On Nov 9, 1:53 pm, pinkisntwell pinkisntw...@gmail.com 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