To free any allocated fields of a pattern buffer, you can use the
POSIX function described in 7.2.6 Freeing POSIX Pattern Buffers,
since the type regex_t---the type for POSIX pattern
buffers--is equivalent to the type re_pattern_buffer. After
freeing a pattern buffer, you need to again compile a regular expression
in it (see section 7.1.2 GNU Regular Expression Compiling) before passing it to
a matching or searching function.
Please take a moment to fill out
this visitor survey You can help support this site by
visiting the advertisers that sponsor it! (only once each, though)