
21 Oct
2004
21 Oct
'04
7:52 p.m.
<Schalk_Cronje@McAfee.com> 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++? <snip>
// [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. ;-) Jonathan