#include <stdio.h>
#include <stdlib.h>
#include <string.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. |
int preg_match | ( | const char * | expr, | |
char * | str, | |||
char *** | matches, | |||
int * | nmatches | |||
) |
Check if a string matches a regular expression.
FUNCTION: preg_match
expr | Regular expression to be matched | |
str | String to be checked | |
matches | Reference to a char** that will contain the submatches (NULL if you don't need it) | |
nmatches | Reference to a int containing the number of submatches found (NULL if you don't need it) |