From e6f7aee8c27d87047857b9daf0075e90062b4ac2 Mon Sep 17 00:00:00 2001 From: Dmitry Mikhirev Date: Sun, 15 Feb 2015 15:10:15 +0300 Subject: added php-like options `A' and `D' --- pcre.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pcre.c') diff --git a/pcre.c b/pcre.c index 3245d79..40f6c14 100644 --- a/pcre.c +++ b/pcre.c @@ -202,6 +202,10 @@ static int parse_comp_opt(const char flag, const char *func) int b; /* PCRE configuration option value */ switch (flag) { + case 'A': /* anchored regexp */ + return PCRE_ANCHORED; + case 'D': /* $ matches at the and of string only */ + return PCRE_DOLLAR_ENDONLY; case 'i': /* ignore case */ return PCRE_CASELESS; case 'm': /* multi-line */ -- cgit v1.2.1