]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [/ |
2 | Copyright 2006-2007 John Maddock. | |
3 | Distributed under the Boost Software License, Version 1.0. | |
4 | (See accompanying file LICENSE_1_0.txt or copy at | |
5 | http://www.boost.org/LICENSE_1_0.txt). | |
6 | ] | |
7 | ||
8 | ||
9 | [section:syntax Regular Expression Syntax] | |
10 | ||
11 | This section covers the regular expression syntax used by this library, | |
12 | this is a programmers guide, the actual syntax presented to your program's | |
13 | users will depend upon the flags used during expression compilation. | |
14 | ||
15 | There are three main syntax options available, depending upon how you | |
16 | construct the regular expression object: | |
17 | ||
18 | * [link boost_regex.syntax.perl_syntax Perl (this is the default behavior)]. | |
19 | * [link boost_regex.syntax.basic_extended POSIX extended (including the egrep and awk variations)]. | |
20 | * [link boost_regex.syntax.basic_syntax POSIX Basic (including the grep and emacs variations)]. | |
21 | ||
22 | You can also construct a regular expression that treats every character as a | |
23 | literal, but that's not really a "syntax"! | |
24 | ||
25 | [include syntax_perl.qbk] | |
26 | [include syntax_extended.qbk] | |
27 | [include syntax_basic.qbk] | |
28 | [include character_class_names.qbk] | |
29 | [include collating_names.qbk] | |
30 | [include leftmost_longest.qbk] | |
31 | ||
32 | [endsect] | |
33 |