REGEX :: Perl-compatible regular expressions using PCRE library Copyright (C) 2008 IƱaki Baz Castillo.
More...
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <pcre.h>
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../pt.h"
#include "../../mem/shm_mem.h"
#include "../../str.h"
#include "../../locking.h"
#include "../../mod_fix.h"
#include "../../lib/kmi/mi.h"
Go to the source code of this file.
Defines
Functions
-
static int load_pcres (int action)
- Convert the file content into regular expresions and store them in pcres.
-
static struct mi_root * mi_pcres_reload (struct mi_root *cmd, void *param)
- Reload pcres by reading the file again.
-
static int mod_init (void)
- Init module function.
-
static int w_pcre_match (struct sip_msg *_msg, char *_s1, char *_s2)
- Return true if the argument matches the regular expression parameter.
-
static int w_pcre_match_group (struct sip_msg *_msg, char *_s1, char *_s2)
- Return true if the string argument matches the pattern group parameter.
Detailed Description
Definition in file regex_mod.c.