3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Nginx, Inc.
8 #ifndef _NGX_REGEX_H_INCLUDED_
9 #define _NGX_REGEX_H_INCLUDED_
12 #include <ngx_config.h>
18 #define NGX_REGEX_NO_MATCHED PCRE_ERROR_NOMATCH /* -1 */
20 #define NGX_REGEX_CASELESS PCRE_CASELESS
40 } ngx_regex_compile_t
;
49 void ngx_regex_init(void);
50 ngx_int_t
ngx_regex_compile(ngx_regex_compile_t
*rc
);
52 #define ngx_regex_exec(re, s, captures, size) \
53 pcre_exec(re->code, re->extra, (const char *) (s)->data, (s)->len, 0, 0, \
55 #define ngx_regex_exec_n "pcre_exec()"
57 ngx_int_t
ngx_regex_exec_array(ngx_array_t
*a
, ngx_str_t
*s
, ngx_log_t
*log
);
60 #endif /* _NGX_REGEX_H_INCLUDED_ */