Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Regex: Iterate over named captures/groups
From: norulez_at_[hidden]
Date: 2012-02-01 07:39:58


Hi John,

I don't know if perl provides it, but PCRE based regex engines does (like Python or PHP)

It would be great if such feature could be implemented and/or access functions could be made public.

For regex_replace as an example the user then knows which sub expression could be used.

Best Regards
NoRulez

Am 01.02.2012 um 13:13 schrieb John Maddock <boost.regex_at_[hidden]>:

>> My question was the following: Is there a way to get a list or whatever of
>> named captures/groups?
>
> No sorry, not even Boost.Regexes private methods provide that functionality.
>
> If there's a convincing use case then I can add that support I guess, but I don't think this is something that even Perl provides?
>
> Regards, John.
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net