• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Regular Expression Syntax</title>
5<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../index.html" title="Boost.Regex 5.1.4">
8<link rel="up" href="../index.html" title="Boost.Regex 5.1.4">
9<link rel="prev" href="partial_matches.html" title="Partial Matches">
10<link rel="next" href="syntax/perl_syntax.html" title="Perl Regular Expression Syntax">
11</head>
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>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="partial_matches.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="syntax/perl_syntax.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h2 class="title" style="clear: both">
27<a name="boost_regex.syntax"></a><a class="link" href="syntax.html" title="Regular Expression Syntax">Regular Expression Syntax</a>
28</h2></div></div></div>
29<div class="toc"><dl class="toc">
30<dt><span class="section"><a href="syntax/perl_syntax.html">Perl Regular Expression
31      Syntax</a></span></dt>
32<dt><span class="section"><a href="syntax/basic_extended.html">POSIX Extended Regular
33      Expression Syntax</a></span></dt>
34<dt><span class="section"><a href="syntax/basic_syntax.html">POSIX Basic Regular
35      Expression Syntax</a></span></dt>
36<dt><span class="section"><a href="syntax/character_classes.html">Character Class
37      Names</a></span></dt>
38<dd><dl>
39<dt><span class="section"><a href="syntax/character_classes/std_char_classes.html">Character
40        Classes that are Always Supported</a></span></dt>
41<dt><span class="section"><a href="syntax/character_classes/optional_char_class_names.html">Character
42        classes that are supported by Unicode Regular Expressions</a></span></dt>
43</dl></dd>
44<dt><span class="section"><a href="syntax/collating_names.html">Collating Names</a></span></dt>
45<dd><dl>
46<dt><span class="section"><a href="syntax/collating_names/digraphs.html">Digraphs</a></span></dt>
47<dt><span class="section"><a href="syntax/collating_names/posix_symbolic_names.html">POSIX
48        Symbolic Names</a></span></dt>
49<dt><span class="section"><a href="syntax/collating_names/named_unicode.html">Named
50        Unicode Characters</a></span></dt>
51</dl></dd>
52<dt><span class="section"><a href="syntax/leftmost_longest_rule.html">The Leftmost
53      Longest Rule</a></span></dt>
54</dl></div>
55<p>
56      This section covers the regular expression syntax used by this library, this
57      is a programmers guide, the actual syntax presented to your program's users
58      will depend upon the flags used during expression compilation.
59    </p>
60<p>
61      There are three main syntax options available, depending upon how you construct
62      the regular expression object:
63    </p>
64<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
65<li class="listitem">
66          <a class="link" href="syntax/perl_syntax.html" title="Perl Regular Expression Syntax">Perl (this is the default
67          behavior)</a>.
68        </li>
69<li class="listitem">
70          <a class="link" href="syntax/basic_extended.html" title="POSIX Extended Regular Expression Syntax">POSIX extended (including
71          the egrep and awk variations)</a>.
72        </li>
73<li class="listitem">
74          <a class="link" href="syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX Basic (including
75          the grep and emacs variations)</a>.
76        </li>
77</ul></div>
78<p>
79      You can also construct a regular expression that treats every character as
80      a literal, but that's not really a "syntax"!
81    </p>
82</div>
83<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
84<td align="left"></td>
85<td align="right"><div class="copyright-footer">Copyright © 1998-2013 John Maddock<p>
86        Distributed under the Boost Software License, Version 1.0. (See accompanying
87        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>)
88      </p>
89</div></td>
90</tr></table>
91<hr>
92<div class="spirit-nav">
93<a accesskey="p" href="partial_matches.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.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="syntax/perl_syntax.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
94</div>
95</body>
96</html>
97