PCRE2_SET_MATCH_LIMIT(3)

πŸ’… NAME πŸ’…

PCRE2 β€” literally the Perl-compatible regular expressions library, but the revised API version πŸ¦‹ (yes bestie, "revised" is doing a lot of work in that sentence, it just means the newer, glowier API).


✨ SYNOPSIS ✨

#include <pcre2.h>

int pcre2_set_match_limit(pcre2_match_context *mcontext,
  uint32_t value);

πŸŽ€ DESCRIPTION πŸŽ€

Okay so picture this: you've got a match context, right? And this function? It sets the match limit field inside that match context. That's it. That's the whole job. πŸ’…

And the result β€” the return value β€” is always zero. Every time. No cap. Zero. It's giving "I have one (1) consistent mood and it is 'success'" 😭✨

fr fr, if you want the full lore, there's a complete description of the PCRE2 native API over in the pcre2api page, and a description of the POSIX API in the pcre2posix page. go read those besties, they ate πŸ‘‘

that's the whole page, i fear β€” short and iconic 🫢

sign-off time πŸŽ€: this masterpiece comes to you from PCRE2 10.47, dated 25 October 2014 β€” an absolute vintage moment, lowkey a throwback classic πŸ’–βœ¨

πŸ“¦ where this page comes from