MEDIUM: regex: add support for passing regex flags to regex_exec_match()
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Jan 2015 12:39:42 +0000 (13:39 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Jan 2015 13:24:53 +0000 (14:24 +0100)
commit15a53a43846e25c99e37f210ec84349d3ea1c64d
tree5f599ec77f0aba9fa424e1b3158c4c39c1298bc3
parent469477879c815dd2123201f5958e112b2693fae0
MEDIUM: regex: add support for passing regex flags to regex_exec_match()

This function (and its sister regex_exec_match2()) abstract the regex
execution but make it impossible to pass flags to the regex engine.
Currently we don't use them but we'll need to support REG_NOTBOL soon
(to indicate that we're not at the beginning of a line). So let's add
support for this flag and update the API accordingly.
include/common/regex.h
src/proto_http.c
src/regex.c