Name

ap_pregcomp — compile a regular expression with automatic cleanup

Synopsis

regex_t *ap_pregcomp(pool *p, const char *pattern, int cflags)

Equivalent to regcomp(), except that memory used is automatically freed when the pool is destroyed and that the regex_t * argument to regcomp( ) is created in the pool and returned, rather than being passed as a parameter.

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.