Re: std.regex with multiple matches

2011-04-21 Thread David Gileadi
On 4/21/11 1:29 PM, Kai Meyer wrote: On 04/21/2011 11:43 AM, David Gileadi wrote: I was using std.regex yesterday, matching a regular expression against a string with the "g" flag to find multiple matches. As the example from the docs shows (BTW I think the example may be wrong; I think it needs

Re: std.regex with multiple matches

2011-04-21 Thread Kai Meyer
On 04/21/2011 11:43 AM, David Gileadi wrote: I was using std.regex yesterday, matching a regular expression against a string with the "g" flag to find multiple matches. As the example from the docs shows (BTW I think the example may be wrong; I think it needs the "g" flag added to the regex call)

Re: std.regex with multiple matches

2011-04-21 Thread David Gileadi
On 4/21/11 11:36 AM, Dmitry Olshansky wrote: On 21.04.2011 21:43, David Gileadi wrote: I was using std.regex yesterday, matching a regular expression against a string with the "g" flag to find multiple matches. As the example from the docs shows (BTW I think the example may be wrong; I think it

Re: std.regex with multiple matches

2011-04-21 Thread Dmitry Olshansky
On 21.04.2011 21:43, David Gileadi wrote: I was using std.regex yesterday, matching a regular expression against a string with the "g" flag to find multiple matches. As the example from the docs shows (BTW I think the example may be wrong; I think it needs the "g" flag added to the regex call)

std.regex with multiple matches

2011-04-21 Thread David Gileadi
I was using std.regex yesterday, matching a regular expression against a string with the "g" flag to find multiple matches. As the example from the docs shows (BTW I think the example may be wrong; I think it needs the "g" flag added to the regex call), you can do a foreach loop on the matches