PCRE_VERSION(3)

πŸ’– PCRE_VERSION πŸ’–

okay bestie, welcome to the PCRE girlies' corner of the Library Functions Manual ✨ this is the PCRE_VERSION(3) page and we're gonna talk about how to ask the library "hey babe what version are you" πŸ’…


✨ NAME ✨

PCRE β€” Perl-compatible regular expressions πŸ¦‹ that's the whole vibe, that's the brand, periodt.


πŸŽ€ SYNOPSIS πŸŽ€

okay so first you gotta let her in, and you do that like this:

#include <pcre.h>

and then β€” three whole icons, one for each flavour of library πŸ’…:

const char *pcre_version(void);

const char *pcre16_version(void);

const char *pcre32_version(void);

🌸 DESCRIPTION 🌸

so this function β€” and yes, even in the 16-bit and 32-bit libraries, she does not switch up on you, she's consistent πŸ’– β€” hands you back a zero-terminated, 8-bit character string. and what's inside that string? two things and two things only:

  • the version number</> of the PCRE library πŸ‘‘
  • the date of its release</> πŸ—“οΈ

that's it. that's the tea. no cap.

ngl if you want the whole lore, there's more reading for you:

  • there's a complete description of the PCRE native API</> over on the pcreapi page 🫢
  • and a description of the POSIX API</> over on the pcreposix page πŸ’œ

go read those if you're feeling like the main character of your own regex journey fr fr 🌈


bestie reminder: this page is just the vibe check function. it tells you who you're working with, not how to work with her. for that, go see pcreapi and pcreposix πŸ’…

and that's the page!! this lil gem comes to you from PCRE 8.30, dated 24 June 2012 β€” yeah she's an icon, she's been iconic, she remains iconic πŸ’–βœ¨πŸŽ€ slay, bye bestie πŸ¦‹