Signature
#define PCRE_CASELESS 0x00000001 /* Ignore Case */#define PCRE_MULTILINE 0x00000002 /* Multilines (affects ^ and $ so that they match the start/end of a line rather than matching the start/end of the string). */#define PCRE_DOTALL 0x00000004 /* Single line (affects . so that it matches any character, even new line characters). */#define PCRE_EXTENDED 0x00000008 /* Pattern extension (ignore whitespace and # comments). */#define PCRE_ANCHORED 0x00000010 /* Force pattern anchoring. */#define PCRE_DOLLAR_ENDONLY 0x00000020 /* $ not to match newline at end. */#define PCRE_UNGREEDY 0x00000200 /* Invert greediness of quantifiers */#define PCRE_NOTEMPTY 0x00000400 /* An empty string is not a valid match. */#define PCRE_UTF8 0x00000800 /* Use UTF-8 Chars */#define PCRE_NO_UTF8_CHECK 0x00002000 /* Do not check the pattern for UTF-8 validity (only relevant if PCRE_UTF8 is set) */#define PCRE_NEVER_UTF 0x00010000 /* Lock out interpretation of the pattern as UTF-8 */#define PCRE_FIRSTLINE 0x00040000 /* Force matching to be before newline */#define PCRE_DUPNAMES 0x00080000 /* Allow duplicate names for subpattern */#define PCRE_NEWLINE_CR 0x00100000 /* Specify that a newline is indicated by a single character CR ) */#define PCRE_NEWLINE_CRLF 0x00300000 /* specify that a newline is indicated by the two-character CRLF sequence ) Overrides the default */#define PCRE_NEWLINE_ANY 0x00400000 /* Specify that any Unicode newline sequence should be recognized. ) newline definition (LF) */#define PCRE_NEWLINE_ANYCRLF 0x00500000 /* Specify that any of CR, LF and CRLF sequences should be recognized ) */#define PCRE_UCP 0x20000000 /* Change the way PCRE processes \B, \b, \D, \d, \S, \s, \W, \w etc. to use Unicode properties */
Description
Flags for compiling regex expressions.
These come directly from the pcre library and can be used in regex_compile_ex.