Name
PCRE API Synopsis
pcre *pcre_compile(const char *pattern,intoptions,const char **errptr,int *erroffset,const unsigned char *tableptr)Compile
patternwith optional mode modifiersoptions, and optional locale tablestableptr, which are created withpcre_maketables( ). Returns a compiled regex, or NULL, witherrptrpointing to an error message, anderroffsetpointing to the position inpatternwhere the error occurred.int pcre_exec(const pcre *code,const pcre_extra*extra,const char *subject,intlength,intstartoffset,intoptions,int *ovector,intovecsize)Perform pattern matching with a compiled regular expression,
code, and a supplied input string,subject, of lengthlength. The results of a successful match are stored inovector. The first and second elements ofovectorcontain the position of the first character in the overall match, and the character following the end of the overall match. Each additional pair of elements, up to two-thirds the length ofovector, contain the positions of the starting character, and the character after capture group submatches. Optional parametersoptionscontain mode modifiers, andpcre_extracontains the results of a call topcre_study( ).pcre_extra *pcre_study(const pcre *code,intoptions,const char **errptr)Return information to speed up calls to
pcre_exec( )withcode. There are currently no options, sooptionsshould always be 0. If an error occurred,errptrpoints to an error message.int pcre_copy_named_substring(const pcre *