Functions

regex.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <alloca.h>
#include <regex.h>

Functions

int preg_match (const char *expr, char *str, char ***matches, int *nmatches)
 Check if a string matches a regular expression.
char * str_replace (char *str, char *orig, char *rep)
 Replace the content of 'orig' in 'str' with 'rep'.
char * str_replace_all (char *str, char *orig, char *rep)
 Replace all of the occurrences of 'orig' in 'str' with 'rep'.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines