<div>Thanks for the excellent library John and others.</div>
<div>&nbsp;</div>
<div>I could not easily find an option to specify a callback function that</div>
<div>somehow returns a custom built replacement string for use with regex_replace.</div>
<div>&nbsp;</div>
<div>The .NET framework utilises the MatchEvaluator&nbsp;mechanism: </div>
<div><a href="http://msdn2.microsoft.com/en-us/library/system.text.regularexpressions.regex.replace.aspx">http://msdn2.microsoft.com/en-us/library/system.text.regularexpressions.regex.replace.aspx</a></div>
<div>&nbsp;</div>
<div>While there is no one definition of a string to return in the case of boost regex&#39;s, perhaps a Range or a pair </div>
<div>of iterators would be sufficient (although temporaries may cause trouble for the unwary).</div>
<div>&nbsp;</div>
<div>Anyway, I have had need of of this mechanism and couldn&#39;t use the excellent regex_replace as </div>
<div>a consequence.</div>
<div>&nbsp;</div>
<div>Neil</div>
<div>&nbsp;</div>