Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2004-10-21 14:52:50

<Schalk_Cronje_at_[hidden]> wrote in message:

> Would anyone be interested in having a perl-like regex shortcut notation?
> The original idea was born during a local C++ focus group discussion.

What is a C++ focus group? A collection of randomly selected people who give
their opinions on proposed changes to C++?


> // [1] Substitutes first occurrence and copy (calls boost::regex_replace)
> // perl: ($s2=$str) =~ s/(BLAH)/Hooray/;
> std::string s2= _s / "(BLAH)" / "Hooray" / str;

Something like this would fit in easily with Eric Niebler's xpressive
library. In fact, I suggested it, but Eric said it was "too cute". Perhaps
we should convene a focus group to discuss the subject. ;-)


Boost list run by bdawes at, gregod at, cpdaniel at, john at