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'. |
int preg_match | ( | const char * | expr, | |
char * | str, | |||
char *** | matches, | |||
int * | nmatches | |||
) |
Check if a string matches a regular expression.
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) |
char* str_replace | ( | char * | str, | |
char * | orig, | |||
char * | rep | |||
) |
Replace the content of 'orig' in 'str' with 'rep'.
str | String to work on | |
orig | String to be replaced | |
rep | Replacement for 'orig' |
char* str_replace_all | ( | char * | str, | |
char * | orig, | |||
char * | rep | |||
) |
Replace all of the occurrences of 'orig' in 'str' with 'rep'.
str | String to work on | |
orig | String to be replaced | |
rep | Replacement for 'orig' |