Options |
enum {
AGRegexCaseInsensitive = 1,
AGRegexDotAll = 2,
AGRegexExtended = 4,
AGRegexLazy = 8,
AGRegexMultiline = 16
};
Options defined for -initWithPattern:options:. Two or more options can be combined with the bitwise OR operator.
Name Description AGRegexCaseInsensitive Matching is case insensitive. Equivalent to /i in Perl. AGRegexDotAll Dot metacharacter matches any character including newline. Equivalent to /s in Perl. AGRegexExtended Allow whitespace and comments in the pattern. Equivalent to /x in Perl. AGRegexLazy Makes greedy quantifiers lazy and lazy quantifiers greedy. No equivalent in Perl. AGRegexMultiline Caret and dollar anchors match at newline. Equivalent to /m in Perl.
(Last Updated 9/12/2003)