EC_NODE_RE(3)
π NAME π
ec_node_re β bestie, this is the one that creates a regular expression node. That's the whole vibe. It's from the Libecoli Programmer's Manual, and it's giving "let me spin you up a shiny regex node" energy. π¦
β¨ SYNOPSIS β¨
Okay so first things first, you gotta pull in the header, no cap:
#include <ecoli/node_re.h>
Then the function itself, and yes she's got two args, keep up:
struct ec_node * ec_node_re(
const char *id, /* The node identifier. */
/*
* The regular expression pattern (POSIX extended regex).
*/
const char *str
);
So id is The node identifier β that's her name tag, her little handle, her @ basically. π
And str is The regular expression pattern (POSIX extended regex) β so like, an actual POSIX extended regex, not the basic kind, don't get it twisted. π
πΈ RETURN VALUE πΈ
You get the node back and you're thriving. β¨
But if things go sideways? You get NULL on error, and errno is set β so go check errno before you spiral, bestie. π
π SEE ALSO π
ec_node_re_set_regexp(3)β go look at her too, she's part of the fam. π«Ά
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
π§ lowkey iconic of them to keep this maintained from 2010 all the way to 2026, fr fr. periodt.
This page came to you from libecoli, dated 2026-06-11. πβ¨ mwah, go write some regexes, main character. ππ
π¦ where this page comes from
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- fedora 44: libecoli-devel 0.11.7-1.fc44 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms