regex.h File Reference

Typedef regoff_t

typedef __off_t regoff_t

signed arithmetic type that can hold the largest value that can be stored in either a type off_t or type ssize_t.

Typedef size_t

typedef __size_t size_t

_SIZE_T_DECLARED

REG_BASIC

REG_EXTENDED

regcomp() flags. Use Extended Regular Expressions.

REG_ICASE

regcomp() flags. Ignore case in match.

REG_NOSUB

regcomp() flags. Report only success or fail in regexec().

REG_NEWLINE

regcomp() flags. Change the handling of <newline>s.

REG_NOSPEC

REG_PEND

REG_DUMP

REG_ENOSYS

regerror() flags

REG_NOMATCH

regerror() flags. regexec() failed to match.

REG_BADPAT

regerror() flags. Invalid regular expression.

REG_ECOLLATE

regerror() flags. Invalid collating element referenced.

REG_ECTYPE

regerror() flags. Invalid character class type referenced.

REG_EESCAPE

regerror() flags. Trailing 'backslash' in pattern.

REG_ESUBREG

regerror() flags. Number in "\\digit" invalid or in error.

REG_EBRACK

regerror() flags. "[]" imbalance.

REG_EPAREN

regerror() flags. "\(\)" or "()" imbalance.

REG_EBRACE

regerror() flags. "\{\}" imbalance.

REG_BADBR

regerror() flags. Content of "\{\}" invalid: not a number, number too large, more than two numbers, first larger than second.

REG_ERANGE

regerror() flags. Invalid endpoint in range expression.

REG_ESPACE

regerror() flags.Out of memory.

REG_BADRPT

regerror() flags

REG_EMPTY

REG_ASSERT

REG_INVARG

REG_ILLSEQ

REG_ATOI

REG_ITOA

REG_NOTBOL

regexec() flags. The first character of the string pointed to by string is not the beginning of the line. Therefore, the circumflex character ( '^' ), when taken as a special character, shall not match the beginning of string.

REG_NOTEOL

regexec() flags. The last character of the string pointed to by string is not the end of the line. Therefore, the dollar sign ( '$' ), when taken as a special character, shall not match the end of string.

REG_STARTEND

REG_TRACE

REG_LARGE

REG_BACKR

regcomp ( regex_t *, const char *, int )

IMPORT_C intregcomp(regex_t *__restrict,
const char *__restrict,
int
)

regerror ( int, const regex_t *, char *, size_t )

IMPORT_C size_tregerror(int,
const regex_t *__restrict,
char *__restrict,
size_t
)

regexec ( const regex_t *, const char *, size_t, regmatch_t *, int )

IMPORT_C intregexec(const regex_t *__restrict,
const char *__restrict,
size_t,
regmatch_t *__restrict,
int
)

regfree ( regex_t * )

IMPORT_C voidregfree(regex_t *)

Parameters
Refer to regcomp() for the documentation