EC_NODE_RE(3)

πŸ“¦
version 0.11.7 Β· 4 versions
, in fedora 44

πŸ’– 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 πŸ‘‘


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