Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Type syntax_option_type



// In header: <boost/xpressive/regex_constants.hpp>

enum syntax_option_type { ECMAScript =  0, icase =  1 << 1, nosubs =  1 << 2, 
                          optimize =  1 << 3, collate =  1 << 4, 
                          single_line =  1 << 10, not_dot_null =  1 << 11, 
                          not_dot_newline =  1 << 12, 
                          ignore_white_space =  1 << 13 };


Flags used to customize the regex syntax


Specifies that the grammar recognized by the regular expression engine uses its normal semantics: that is the same as that given in the ECMA-262, ECMAScript Language Specification, Chapter 15 part 10, RegExp (Regular Expression) Objects (FWD.1).


Specifies that matching of regular expressions against a character container sequence shall be performed without regard to case.


Specifies that when a regular expression is matched against a character container sequence, then no sub-expression matches are to be stored in the supplied match_results structure.


Specifies that the regular expression engine should pay more attention to the speed with which regular expressions are matched, and less to the speed with which regular expression objects are constructed. Otherwise it has no detectable effect on the program output.


Specifies that character ranges of the form "[a-b]" should be locale sensitive.


Specifies that the ^ and $ metacharacters DO NOT match at internal line breaks. Note that this is the opposite of the perl default. It is the inverse of perl's /m (multi-line) modifier.


Specifies that the . metacharacter does not match the null character \0.


Specifies that the . metacharacter does not match the newline character \n.


Specifies that non-escaped white-space is not significant.