ecoli_node_re(3)

πŸ“¦
version 0.11.3 Β· 2 versions
, in epel 9

πŸ’… NAME

ecoli_node_re β€” a regex node, bestie. Like, a node that matches input against a regular expression. That's the whole vibe ✨

It lives in the Libecoli manual (section 3, for the dev girlies who read man pages for fun 🫢).


✨ SYNOPSIS

Functions

struct ec_node * ec_node_re (const char *id, const char *str)
int ec_node_re_set_regexp (struct ec_node *node, const char *re)

Those are the two functions, no cap. One makes the node, one swaps the regex out later. Cute, right? πŸ’–


πŸ¦‹ Detailed Description

Okay so picture this: a node whose entire personality is matching input against a regular expression. That's it. That's the node. Main character energy πŸ‘‘

A node that matches input against a regular expression.

Configuration Schema

Here's the schema, and I'm putting it in a code block because you do not want me paraphrasing a schema, that's how bugs get born 😭

schema re {
    string pattern  {
        description "The pattern to match.";
    }
}

There's exactly one field, pattern, and its description literally says "The pattern to match." β€” that's it, that's the field. Slay, honestly 🌸


πŸŽ€ Function Documentation

🧚 struct ec_node* ec_node_re (const char * id, const char * str)

Create a regular expression node. Fresh off the press, iconic, one of one ✨

Parameters β€” here's what you're feeding it:

  • id β€” the node identifier.
  • str β€” the regular expression pattern (POSIX extended regex β€” yes, that specific flavour, don't come at me with your PCRE nonsense πŸ™ˆ).

Returns β€” the node! πŸŽ‰ Or NULL on error, and when that happens errno is set, so go check it like a good little debugger πŸ’€

🧚 int ec_node_re_set_regexp (struct ec_node * node, const char * re)

Set the regular expression on a regex node. Yeah, you heard me β€” you can straight up change its mind later 😌

Parameters:

  • node β€” the regex node.
  • re β€” the regular expression pattern. Heads up: it is duplicated internally, so your string is safe, do whatever you want with it afterwards, that's not your problem anymore 🫢

Returns β€” 0 on success, -1 on error (and errno is set, obviously, we been knew) πŸ”₯


πŸ‘‘ Author

Generated automatically by Doxygen for Libecoli from the source code. Not a human, just a robot doing its little robot thing πŸ€–πŸ’œ


ngl bestie, if you're reading this at 3am trying to figure out why your regex isn't matching β€” it's probably a POSIX extended thing. Just saying. ⭐

Okay bye, love you, go match some input 🌈

Version 0.11.3 β€” that's the version, babe β€” dated Thu Apr 9 2026, and that's the whole ecoli_node_re(3) page. Periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from