<div>Thanks for the excellent library John and others.</div> <div> </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> </div> <div>The .NET framework utilises the MatchEvaluator 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> </div> <div>While there is no one definition of a string to return in the case of boost regex's, perhaps a Range or a pair </div> <div>of iterators would be sufficient (although temporaries may cause trouble for the unwary).</div> <div> </div> <div>Anyway, I have had need of of this mechanism and couldn't use the excellent regex_replace as </div> <div>a consequence.</div> <div> </div> <div>Neil</div> <div> </div>