NATIVE(5re)
π NATIVE(5re) π
okay so bestie, welcome to native(5re) β yeah, section 5re, and the manual it lives in is literally labeled [FIXME: manual] π (iconic of them honestly). This is the page for native, the libre native regular expression syntax β the regex dialect libre speaks natively, and you're about to learn it. β¨
Fair warning before we start: this page is kind of a work in progress. Some sections are just a pointer at a table, one section is literally just the word TODO, and one section is straight-up empty. That's not me skipping anything, that's genuinely the whole page. We ride at dawn anyway π«Ά
πΈ FLAGS πΈ
The flags? Bestie. They're in Table 1. That's it, that's the section. Go look at Table 1, it's got you π
β¨ ATOMS β¨
Same energy: Table 2. All the atoms, happily living in Table 2. Go check it out π¦
π ESCAPES π
And again β Table 3. Every escape you could want, chilling in Table 3. periodt.
π RANGES π
Ranges are those square-bracket situations, and the page gives you two shapes to look at:
[a-z]
[a--]
Here's the tea β:
aandzare character literals or numeric escape sequences β so it's not just letters, bestie, you can absolutely drop a numeric escape in there.- a
^inverts the range. classic behaviour, we love a negation moment. - A trailing
-is allowed (that's the[a--]vibe up there π). - A leading
-is... not? The page literally ends that sentence with a question mark, so ngl even the docs aren't fully committing here. Not me making stuff up to fill the gap π
π₯ OPERATORS π₯
You guessed it: Table 4. Every operator, all of them, in Table 4. slay.
π ANCHORS π
Okay so this section doesn't describe anchors yet at all β instead it's a little TODO list of stuff the docs want to nail down later:
TODO: syntatic precedence, permit redunancy non-satisfiable situations
(Yes I copied those typos exactly, no I will not be fixing them, they're part of the lore now π)
So: syntactic precedence and permitting redundant, non-satisfiable situations are both documented as still-to-do, not documented as behaviour. Do not go assuming, bestie π«Ά
π CAVEATS π
Heads up: this section is empty in the page. There is nothing under CAVEATS. Zero caveats, allegedly. I'm not adding any, because I'm not out here inventing warnings π₯
π SEE ALSO π
Go get your read on, these are the siblings:
re(1)libre(3)glob(5re)like(5re)literal(5re)sql(5re)
and that's the whole page, bestie! π little sign-off corner: this one's native, dated 01/01/1980 (yes, that date, don't ask), sitting in section 5re of the [FIXME: manual] manual. now go read Table 1 through Table 4 for me, mwah ππ¦
π¦ where this page comes from
- nixos 26.05: libfsm 0.1pre2987_087e3389
- nixpkgs unstable: libfsm 0.1pre2987_087e3389
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms