Regular Expression functions.
More...
#include <sys/types.h>
#include <string.h>
#include <regex.h>
#include <ctype.h>
#include "regexp.h"
#include "../../dprint.h"
Go to the source code of this file.
Functions
-
int reg_match (char *pattern, char *string, regmatch_t *pmatch)
- Match pattern against string and store result in pmatch.
-
int reg_replace (char *pattern, char *replacement, char *string, str *result)
- Match pattern against string and, if match succeeds, and replace string with replacement substituting tokens \d with matched substrings.
-
int replace (regmatch_t *pmatch, char *string, char *replacement, str *result)
- Replace in replacement tokens \d with substrings of string pointed by pmatch.
Detailed Description
Definition in file regexp.c.