ecoli_node_re(3)
π 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
- epel 9: libecoli-devel 0.11.3-1.el9 Β· BSD-3-Clause AND LicenseRef-Fedora-Public-Domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms