# regex.h - [Overview](#section533711568165628) - [Summary](#section520317974165628) - [Functions](#func-members) ## **Overview** **Related Modules:** [UTILS](UTILS.md) **Description:** Provides common functions for operating regular expressions. You can use functions provided in this file to perform operations on regular expressions during development. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Functions

Function

Description

regcomp (regex_t *preg, const char *regex, int cflags)

int

Compiles a specified regular expression into a string of a specific format.

regexec (const regex_t *preg, const char *string, size_t nmatch, regmatch_t pmatch[], int eflags)

int

Matches a regular expression.

regfree (regex_t *preg)

void

Releases a regular expression.

regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)

size_t

Returns a string containing error information.