Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost Regex - Alternation documentation example
From: Nick (nospam_at_[hidden])
Date: 2017-07-21 17:59:42


Somehow I didn't get this reply for a while.

On Sat, 2017-07-15 at 15:44 +0100, John Maddock via Boost-users wrote:
>
> On 15/07/2017 14:12, Nick via Boost-users wrote:
> > Why does it need two '?' operators instead of only one?
>
> Non-greedy, matches nothing for preference, otherwise abc, same as
> "(?:)|abc" does.

Good to know, thanks. Makes me wonder what scenario(s) that would be
useful for


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