Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2005-12-09 05:23:47


> Indeed it does.
>
> If the user wants only one substitution, I'd say the use of /g, which
> allows s/// to match multiple times, is the central mistake.

And just to clarify: regex_replace finds and replaces *all* occurances
(equivalent to /g) unless you tell it otherwise with the format_first_only
flag.

John.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk