regex.h — Regular expression functions
The
regex.h
header file contains definitions for the following regular
expression functions.
regcomp() | regerror() | regexec() | regfree() |
The regex.h header file declares the regex_t
type,
which can store a compiled regular expression.
The regex.h header file declares the following macros:
- Values of the cflags parameter of the regcomp() function: REG_EXTENDED, REG_ICASE, REG_NEWLINE, REG_NOSUB
- Values of the eflags parameter of the regexec() function: REG_NOTBOL, REG_NOTEOL
- Values of the errcode parameter of the regerror() function: REG_*.