#ifndef ZABBIX_ZBXREGEXP_H
#define ZABBIX_ZBXREGEXP_H
#define ZBX_REGEXP_NO_MATCH 0
#define ZBX_REGEXP_MATCH 1
#define ZBX_IGNORE_CASE 0
#define ZBX_CASE_SENSITIVE 1
typedef struct zbx_regexp zbx_regexp_t;
unsigned char case_sensitive;
ZBX_PTR_VECTOR_DECL(expression, zbx_expression_t *)
int zbx_regexp_compile(const char *pattern, zbx_regexp_t **regexp, const char **err_msg);
int zbx_regexp_compile_ext(const char *pattern, zbx_regexp_t **regexp, int flags, const char **err_msg);
void zbx_regexp_free(zbx_regexp_t *regexp);
int zbx_regexp_match_precompiled(const char *string, const zbx_regexp_t *regexp);
char *zbx_regexp_match(const char *string, const char *pattern, int *len);
int zbx_regexp_sub(const char *string, const char *pattern, const char *output_template, char **out);
int zbx_mregexp_sub(const char *string, const char *pattern, const char *output_template, char **out);
int zbx_iregexp_sub(const char *string, const char *pattern, const char *output_template, char **out);
int zbx_mregexp_sub_precompiled(const char *string, const zbx_regexp_t *regexp, const char *output_template,
size_t limit, char **out);
void zbx_regexp_clean_expressions(zbx_vector_expression_t *expressions);
void zbx_add_regexp_ex(zbx_vector_expression_t *regexps, const char *name, const char *expression,
int expression_type, char exp_delimiter, int case_sensitive);
int zbx_regexp_match_ex(const zbx_vector_expression_t *regexps, const char *string, const char *pattern,
int zbx_regexp_sub_ex(const zbx_vector_expression_t *regexps, const char *string, const char *pattern,
int case_sensitive, const char *output_template, char **output);