Re: std.regex named matches

2012-02-21 Thread James Miller
On 22 February 2012 04:45, Dmitry Olshansky wrote: > On 21.02.2012 7:34, James Miller wrote: >> >> On 20 February 2012 21:34, Dmitry Olshansky  wrote: >>> >>> 08.02.2012 13:07, James Miller пишет: >>> Hi, I am using std.regex and using the named matches. I would like to be

Re: std.regex named matches

2012-02-21 Thread Dmitry Olshansky
On 21.02.2012 7:34, James Miller wrote: On 20 February 2012 21:34, Dmitry Olshansky wrote: 08.02.2012 13:07, James Miller пишет: Hi, I am using std.regex and using the named matches. I would like to be able to get at the names that have matched, since this is library code. e.g. auto m

Re: std.regex named matches

2012-02-20 Thread James Miller
On 20 February 2012 21:34, Dmitry Olshansky wrote: > 08.02.2012 13:07, James Miller пишет: >> >> Hi, >> >> I am using std.regex and using the named matches. I would like to be >> able to get at the names that have matched, since this is library >> code. >> >> e.g. >> >>     auto m = match("test/2"

Re: std.regex named matches

2012-02-20 Thread Dmitry Olshansky
08.02.2012 13:07, James Miller пишет: Hi, I am using std.regex and using the named matches. I would like to be able to get at the names that have matched, since this is library code. e.g. auto m = match("test/2", regex(r"(?P\w+)/(?P\d)")); //either auto names = m.names; //o

std.regex named matches

2012-02-08 Thread James Miller
Hi, I am using std.regex and using the named matches. I would like to be able to get at the names that have matched, since this is library code. e.g. auto m = match("test/2", regex(r"(?P\w+)/(?P\d)")); //either auto names = m.names; //or auto names = m.captures.names; or som