3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Options for POSIX Basic Regular Expressions</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.3">
8 <link rel="up" href="../syntax_option_type.html" title="syntax_option_type">
9 <link rel="prev" href="syntax_option_type_extended.html" title="Options for POSIX Extended Regular Expressions">
10 <link rel="next" href="syntax_option_type_literal.html" title="Options for Literal Strings">
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="syntax_option_type_extended.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../syntax_option_type.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_option_type_literal.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>
26 <div class="titlepage"><div><div><h4 class="title">
27 <a name="boost_regex.ref.syntax_option_type.syntax_option_type_basic"></a><a class="link" href="syntax_option_type_basic.html" title="Options for POSIX Basic Regular Expressions">Options
28 for POSIX Basic Regular Expressions</a>
29 </h4></div></div></div>
31 Exactly one of the following must always be set for POSIX basic regular
34 <div class="informaltable"><table class="table">
71 Specifies that the grammar recognized by the regular expression
72 engine is the same as that used by <a class="link" href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX
73 basic regular expressions</a> in IEEE Std 1003.1-2001, Portable
74 Operating System Interface (POSIX ), Base Definitions and Headers,
75 Section 9, Regular Expressions (FWD.1).
109 Specifies that the grammar recognized by the regular expression
110 engine is the same as that used by POSIX utility <code class="computeroutput"><span class="identifier">grep</span></code> in IEEE Std 1003.1-2001,
111 Portable Operating System Interface (POSIX ), Shells and Utilities,
112 Section 4, Utilit\ies, grep (FWD.1).
115 That is to say, the same as <a class="link" href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX
116 basic syntax</a>, but with the newline character acting as
117 an alternation character; the expression is treated as a newline
118 separated list of alternatives.
135 Specifies that the grammar recognised is the superset of the
136 <a class="link" href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX-Basic syntax</a>
137 used by the emacs program.
144 The following options may also be set when using POSIX basic regular expressions:
146 <div class="informaltable"><table class="table">
183 Specifies that matching of regular expressions against a character
184 container sequence shall be performed without regard to case.
201 Specifies that when a regular expression is matched against a
202 character container sequence, then no sub-expression matches
203 are to be stored in the supplied <a class="link" href="../match_results.html" title="match_results"><code class="computeroutput"><span class="identifier">match_results</span></code></a> structure.
220 Specifies that the regular expression engine should pay more
221 attention to the speed with which regular expressions are matched,
222 and less to the speed with which regular expression objects are
223 constructed. Otherwise it has no detectable effect on the program
224 output. This currently has no effect for Boost.Regex.
241 Specifies that character ranges of the form <code class="computeroutput"><span class="special">[</span><span class="identifier">a</span><span class="special">-</span><span class="identifier">b</span><span class="special">]</span></code>
242 should be locale sensitive. This bit is on by default for <a class="link" href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX-Basic regular
243 expressions</a>, but can be unset to force ranges to be compared
261 Specifies that the \n character has the same effect as the alternation
262 operator |. Allows newline separated lists to be used as a list
263 of alternatives. This bit is already set, if you use the <code class="computeroutput"><span class="identifier">grep</span></code> option.
280 When set then character classes such as <code class="computeroutput"><span class="special">[[:</span><span class="identifier">alnum</span><span class="special">:]]</span></code>
298 When set this makes the escape character ordinary inside lists,
299 so that <code class="computeroutput"><span class="special">[\</span><span class="identifier">b</span><span class="special">]</span></code> would match either '\' or 'b'.
300 This bit is on by default for <a class="link" href="../../syntax/basic_syntax.html" title="POSIX Basic Regular Expression Syntax">POSIX-basic
301 regular expressions</a>, but can be unset to force escapes
302 to be recognised inside lists.
319 When set then bounded repeats such as a{2,3} are not permitted.
336 When set then <code class="computeroutput"><span class="special">\?</span></code>
337 acts as a zero-or-one repeat operator, and <code class="computeroutput"><span class="special">\+</span></code>
338 acts as a one-or-more repeat operator.
355 When set then <code class="computeroutput"><span class="special">\|</span></code>
356 acts as the alternation operator.
373 Prevents <a class="link" href="../basic_regex.html" title="basic_regex"><code class="computeroutput"><span class="identifier">basic_regex</span></code></a> from throwing
374 an exception when an invalid expression is encountered.
381 save_subexpression_location
391 When set then the locations of individual sub-expressions within
392 the <span class="emphasis"><em>original regular expression string</em></span> can
393 be accessed via the <a class="link" href="../basic_regex.html#boost_regex.basic_regex.subexpression"><code class="computeroutput"><span class="identifier">subexpression</span><span class="special">()</span></code></a>
394 member function of <code class="computeroutput"><span class="identifier">basic_regex</span></code>.
401 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
402 <td align="left"></td>
403 <td align="right"><div class="copyright-footer">Copyright © 1998-2013 John Maddock<p>
404 Distributed under the Boost Software License, Version 1.0. (See accompanying
405 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>)
410 <div class="spirit-nav">
411 <a accesskey="p" href="syntax_option_type_extended.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../syntax_option_type.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_option_type_literal.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a>