<aname="boost_regex.format"></a><ahref="format.html"title="Search and Replace Format String Syntax"> Search and Replace Format String Syntax</a></h2></div></div></div>
<divclass="toc"><dl>
<dt><spanclass="section"><ahref="format/sed_format.html"> Sed Format String Syntax</a></span></dt>
<dt><spanclass="section"><ahref="format/perl_format.html"> Perl Format String Syntax</a></span></dt>
Format strings are used by the algorithm <ahref="ref/regex_replace.html"title="regex_replace"><codeclass="computeroutput"><spanclass="identifier">regex_replace</span></code></a> and by <ahref="ref/match_results.html#boost_regex.match_results_format"><codeclass="computeroutput"><spanclass="identifier">match_results</span><spanclass="special"><>::</span><spanclass="identifier">format</span></code></a>, and are used to transform
one string into another.
</p>
<p>
There are three kind of format string: <ahref="format/sed_format.html"title="Sed Format String Syntax">Sed</a>,
<ahref="format/perl_format.html"title="Perl Format String Syntax">Perl</a> and <ahref="format/boost_format_syntax.html"title="Boost-Extended Format String Syntax">Boost-Extended</a>.
</p>
<p>
Alternatively, when the flag <codeclass="computeroutput"><spanclass="identifier">format_literal</span></code>
is passed to one of these functions, then the format string is treated as a
string literal, and is copied unchanged to the output.