native

regex_free

Syntax

native regex_free(&Regex:id);

Description

Frees the memory associated with a regex result, and sets the handle to 0.
This must be called on all results from regex_match() when you are done extracting
the results with regex_substr().
The results of regex_compile() (and subsequently, regex_match_c()) only need to be freed
when you are done using the pattern.

Parameters

id The regex handle to free.

Return

This function has no return value.

Note

Do not use the handle again after freeing it!