3 <meta http-equiv=
"Content-Type" content=
"text/html; charset=US-ASCII">
4 <title>Sed Format String Syntax
</title>
5 <link rel=
"stylesheet" href=
"../../../../../../doc/src/boostbook.css" type=
"text/css">
6 <meta name=
"generator" content=
"DocBook XSL Stylesheets V1.77.1">
7 <link rel=
"home" href=
"../../index.html" title=
"Boost.Regex 5.1.2">
8 <link rel=
"up" href=
"../format.html" title=
"Search and Replace Format String Syntax">
9 <link rel=
"prev" href=
"../format.html" title=
"Search and Replace Format String Syntax">
10 <link rel=
"next" href=
"perl_format.html" title=
"Perl Format String Syntax">
12 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
13 <table cellpadding=
"2" width=
"100%"><tr>
14 <td valign=
"top"><img alt=
"Boost C++ Libraries" width=
"277" height=
"86" src=
"../../../../../../boost.png"></td>
15 <td align=
"center"><a href=
"../../../../../../index.html">Home
</a></td>
16 <td align=
"center"><a href=
"../../../../../../libs/libraries.htm">Libraries
</a></td>
17 <td align=
"center"><a href=
"http://www.boost.org/users/people.html">People
</a></td>
18 <td align=
"center"><a href=
"http://www.boost.org/users/faq.html">FAQ
</a></td>
19 <td align=
"center"><a href=
"../../../../../../more/index.htm">More
</a></td>
22 <div class=
"spirit-nav">
23 <a accesskey=
"p" href=
"../format.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../format.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"perl_format.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>
26 <div class=
"titlepage"><div><div><h3 class=
"title">
27 <a name=
"boost_regex.format.sed_format"></a><a class=
"link" href=
"sed_format.html" title=
"Sed Format String Syntax">Sed Format String Syntax
</a>
28 </h3></div></div></div>
30 Sed-style format strings treat all characters as literals except:
32 <div class=
"informaltable"><table class=
"table">
58 The ampersand character is replaced in the output stream by the
59 whole of what matched the regular expression. Use \
& to output
60 a literal '
&' character.
72 Specifies an escape sequence.
79 An escape character followed by any character x, outputs that character unless
80 x is one of the escape sequences shown below.
82 <div class=
"informaltable"><table class=
"table">
108 Outputs the bell character: '\a'.
120 Outputs the ANSI escape character (code point
27).
132 Outputs a form feed character: '\f'
144 Outputs a newline character: '\n'.
156 Outputs a carriage return character: '\r'.
168 Outputs a tab character: '\t'.
180 Outputs a vertical tab character: '\v'.
192 Outputs the character whose hexadecimal code point is
0xDD
204 Outputs the character whose hexadecimal code point is
0xDDDDD
216 Outputs the ANSI escape sequence
"escape-X".
228 If D is a decimal digit in the range
1-
9, then outputs the text
229 that matched sub-expression D.
236 <table xmlns:
rev=
"http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width=
"100%"><tr>
237 <td align=
"left"></td>
238 <td align=
"right"><div class=
"copyright-footer">Copyright
© 1998-
2013 John Maddock
<p>
239 Distributed under the Boost Software License, Version
1.0. (See accompanying
240 file LICENSE_1_0.txt or copy at
<a href=
"http://www.boost.org/LICENSE_1_0.txt" target=
"_top">http://www.boost.org/LICENSE_1_0.txt
</a>)
245 <div class=
"spirit-nav">
246 <a accesskey=
"p" href=
"../format.html"><img src=
"../../../../../../doc/src/images/prev.png" alt=
"Prev"></a><a accesskey=
"u" href=
"../format.html"><img src=
"../../../../../../doc/src/images/up.png" alt=
"Up"></a><a accesskey=
"h" href=
"../../index.html"><img src=
"../../../../../../doc/src/images/home.png" alt=
"Home"></a><a accesskey=
"n" href=
"perl_format.html"><img src=
"../../../../../../doc/src/images/next.png" alt=
"Next"></a>