PCRE2_MATCH_DATA_FREE(3)
π NAME π
okay bestie, this is the PCRE2_MATCH_DATA_FREE(3) page from the Library Functions Manual, and it's all about PCRE2 β Perl-compatible regular expressions (revised API) β specifically the function that frees your match data. π
β¨ SYNOPSIS β¨
#include <pcre2.h>
void pcre2_match_data_free(pcre2_match_data *match_data);
π¦ DESCRIPTION π¦
So here's the tea: if match_data is NULL, this function does absolutely nothing. Literally a no-op, bestie. π
Otherwise, match_data must point to a match data block, and this function frees it. It frees it using the memory freeing function from the general context or compiled pattern with which it was created, or free() if that was not set. Slay. β¨
If the match data block was previously passed to pcre2_match(), it will have an attached heapframe vector; this is also freed. π«Ά
If the PCRE2_COPY_MATCHED_SUBJECT was used for a successful match using this match data block, the copy of the subject that was referenced within the block is also freed. ππ
There is a complete description of the PCRE2 native API in the pcre2api page and a description of the POSIX API in the pcre2posix page. π
that's the whole vibe, bestie β this manual page is from PCRE2 10.47, dated 16 August 2023, and we are so done here. periodt. π
π¦ where this page comes from
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms