
25 Feb
2009
25 Feb
'09
9:53 a.m.
The examples on the Boost site for regex_replace all demonstrate replacement with static text. I suspect that I have to do some sort of combination using regex_replace, regex_iterator, and match_results, but I can't quite wrap my head around the documentation for these classes to see how they interoperate. I would appreciate some pointers as to how to proceed.
Hi Ken, what I suggest you do is look at the source for regex_replace: it's actually a pretty simple application of of regex_iterator internally, it should be fairly trivial to modify that to do what you want it to, HTH, John.