enum Poco::RegularExpression::Options
Overview
Some of the following options can only be passed to the constructor; some can be passed only to matching functions, and some can be used everywhere. More…
#include <RegularExpression.h> enum Options { RE_CASELESS = 0x00000001, RE_MULTILINE = 0x00000002, RE_DOTALL = 0x00000004, RE_EXTENDED = 0x00000008, RE_ANCHORED = 0x00000010, RE_DOLLAR_ENDONLY = 0x00000020, RE_EXTRA = 0x00000040, RE_NOTBOL = 0x00000080, RE_NOTEOL = 0x00000100, RE_UNGREEDY = 0x00000200, RE_NOTEMPTY = 0x00000400, RE_UTF8 = 0x00000800, RE_NO_AUTO_CAPTURE = 0x00001000, RE_NO_UTF8_CHECK = 0x00002000, RE_FIRSTLINE = 0x00040000, RE_DUPNAMES = 0x00080000, RE_NEWLINE_CR = 0x00100000, RE_NEWLINE_LF = 0x00200000, RE_NEWLINE_CRLF = 0x00300000, RE_NEWLINE_ANY = 0x00400000, RE_NEWLINE_ANYCRLF = 0x00500000, RE_GLOBAL = 0x10000000, RE_NO_VARS = 0x20000000, };
Detailed Documentation
Some of the following options can only be passed to the constructor; some can be passed only to matching functions, and some can be used everywhere.
* Options marked [ctor] can be passed to the constructor. * Options marked [match] can be passed to match, extract, split and subst. * Options marked [subst] can be passed to subst.
See the PCRE documentation for more information.
Enum Values
RE_CASELESS
case insensitive matching (/i) [ctor]
RE_MULTILINE
enable multi-line mode; affects ^ and $ (/m) [ctor]
RE_DOTALL
dot matches all characters, including newline (/s) [ctor]
RE_EXTENDED
totally ignore whitespace (/x) [ctor]
RE_ANCHORED
treat pattern as if it starts with a ^ [ctor, match]
RE_DOLLAR_ENDONLY
dollar matches end-of-string only, not last newline in string [ctor]
RE_EXTRA
enable optional PCRE functionality [ctor]
RE_NOTBOL
circumflex does not match beginning of string [match]
RE_NOTEOL
$ does not match end of string [match]
RE_UNGREEDY
make quantifiers ungreedy [ctor]
RE_NOTEMPTY
empty string never matches [match]
RE_UTF8
assume pattern and subject is UTF-8 encoded [ctor]
RE_NO_AUTO_CAPTURE
disable numbered capturing parentheses [ctor, match]
RE_NO_UTF8_CHECK
do not check validity of UTF-8 code sequences [match]
RE_FIRSTLINE
an unanchored pattern is required to match
RE_DUPNAMES
names used to identify capturing subpatterns need not be unique [ctor]
RE_NEWLINE_CR
assume newline is CR (‘’), the default [ctor]
RE_NEWLINE_LF
assume newline is LF (‘
‘) [ctor]
RE_NEWLINE_CRLF
assume newline is CRLF (“rn”) [ctor]
RE_NEWLINE_ANY
assume newline is any valid Unicode newline character [ctor]
RE_NEWLINE_ANYCRLF
assume newline is any of CR, LF, CRLF [ctor]
RE_GLOBAL
replace all occurences (/g) [subst]
RE_NO_VARS
treat dollar in replacement string as ordinary character [subst]