mirror of
https://github.com/boostorg/regex.git
synced 2025-06-30 22:30:57 +02:00
64 lines
4.1 KiB
HTML
64 lines
4.1 KiB
HTML
![]() |
<html>
|
|||
|
<head>
|
|||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|||
|
<title>Search and Replace Format String Syntax</title>
|
|||
|
<link rel="stylesheet" href="../../../../../doc/html/boostbook.css" type="text/css">
|
|||
|
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot_2006-12-17_0120">
|
|||
|
<link rel="start" href="../index.html" title="Boost.Regex">
|
|||
|
<link rel="up" href="../index.html" title="Boost.Regex">
|
|||
|
<link rel="prev" href="syntax/leftmost_longest_rule.html" title="The Leftmost Longest Rule">
|
|||
|
<link rel="next" href="format/sed_format.html" title="Sed Format String Syntax">
|
|||
|
</head>
|
|||
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
|||
|
<table cellpadding="2" width="100%">
|
|||
|
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
|
|||
|
<td align="center"><a href="../../../../../index.htm">Home</a></td>
|
|||
|
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
|
|||
|
<td align="center"><a href="../../../../../people/people.htm">People</a></td>
|
|||
|
<td align="center"><a href="../../../../../more/faq.htm">FAQ</a></td>
|
|||
|
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
|
|||
|
</table>
|
|||
|
<hr>
|
|||
|
<div class="spirit-nav">
|
|||
|
<a accesskey="p" href="syntax/leftmost_longest_rule.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="format/sed_format.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
|
|||
|
</div>
|
|||
|
<div class="section" lang="en">
|
|||
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
|||
|
<a name="boost_regex.format"></a><a href="format.html" title="Search and Replace Format String Syntax"> Search and Replace Format String Syntax</a></h2></div></div></div>
|
|||
|
<div class="toc"><dl>
|
|||
|
<dt><span class="section"><a href="format/sed_format.html"> Sed Format String Syntax</a></span></dt>
|
|||
|
<dt><span class="section"><a href="format/perl_format.html"> Perl Format String Syntax</a></span></dt>
|
|||
|
<dt><span class="section"><a href="format/boost_format_syntax.html"> Boost-Extended
|
|||
|
Format String Syntax</a></span></dt>
|
|||
|
</dl></div>
|
|||
|
<p>
|
|||
|
Format strings are used by the algorithm <a href="ref/regex_replace.html" title="regex_replace"><code class="computeroutput"><span class="identifier">regex_replace</span></code></a> and by <a href="ref/match_results.html#boost_regex.match_results_format"><code class="computeroutput"><span class="identifier">match_results</span><span class="special"><>::</span><span class="identifier">format</span></code></a>, and are used to transform
|
|||
|
one string into another.
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
There are three kind of format string: <a href="format/sed_format.html" title="Sed Format String Syntax">Sed</a>,
|
|||
|
<a href="format/perl_format.html" title="Perl Format String Syntax">Perl</a> and <a href="format/boost_format_syntax.html" title="Boost-Extended Format String Syntax">Boost-Extended</a>.
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
Alternatively, when the flag <code class="computeroutput"><span class="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.
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
</p>
|
|||
|
<p>
|
|||
|
</p>
|
|||
|
</div>
|
|||
|
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
|||
|
<td align="left"></td>
|
|||
|
<td align="right"><small>Copyright <20> 2007 John Maddock</small></td>
|
|||
|
</tr></table>
|
|||
|
<hr>
|
|||
|
<div class="spirit-nav">
|
|||
|
<a accesskey="p" href="syntax/leftmost_longest_rule.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="format/sed_format.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
|
|||
|
</div>
|
|||
|
</body>
|
|||
|
</html>
|