|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-09-15 08:52:49
"Eric Niebler" <eric_at_[hidden]> writes:
> Scott Woods wrote:
>>
>> 1. What is the benefit of providing the complete match in the
>> first entry of the results? e.g. "what[0]". While this is consistent
>> with a long tradition in RE, after some time with STL it's
>> presence at position zero wasnt as comfortable as I expected.
>
>
> I'm curious, what did your experience with STL lead you to expect?
>
> I did it this way because TR1 regex does it that way.
Python does it that way, too, FWIW.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk