EC_NODE_RE_SET_REGEXP(3)
β¨ NAME β¨
okay bestie, welcome to EC_NODE_RE_SET_REGEXP(3) from the Libecoli Programmer's Manual π«Ά β this one's a tiny little function and honestly? iconic.
ec_node_re_set_regexp β Set the regular expression on a regex node. π
That's it. That's the whole job. She sets the regexp. Periodt.
πΈ SYNOPSIS πΈ
first things first, you gotta pull in the header:
#include <ecoli/node_re.h>
and then here's the whole signature, exactly as it is, no cap:
int ec_node_re_set_regexp(
struct ec_node *node, /* The regex node. */
/*
* The regular expression pattern. It is duplicated internally.
*/
const char *re
);
so node is the regex node (the thing you're blessing with a pattern), and re is the regular expression pattern itself. and listen β it gets duplicated internally, so the function makes its own lil copy, you don't gotta worry about keeping your string alive. β¨
π¦ RETURN VALUE π¦
0β success, slay, we ate π-1β error, anderrnois set (so go check her, she'll tell you what went wrong π)
π SEE ALSO π
ec_node_re(3)β go read her too, she's the main character of this whole node situation π
π COPYRIGHT π
Copyright (C) 2010-2026 Olivier Matz, Robin Jarry.
that's the whole page bestie, short and sweet fr fr π this was libecoli, dated 2026-06-11, and you just read EC_NODE_RE_SET_REGEXP(3) β go set some regexps, you got this π
β¨π
π¦ 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