commit: 6ff080a8149cde09dedafa30d2d2967108a7cb00
parent 797f8928824c7bf40441f8ebaee1d8290d4421bc
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 24 Apr 2025 18:28:26 +0200
man7x/regex.7x: new
Diffstat:
1 file changed, 45 insertions(+), 0 deletions(-)
diff --git a/man7x/regex.7x b/man7x/regex.7x
@@ -0,0 +1,45 @@
+.\" This file is part of Cross Unix Documentation
+.\" Copyright © 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+.\" SPDX-License-Identifier: CC-BY-4.0
+.Dd 2025-04-24
+.Dt REGEX 7x
+.Os
+.Sh PROLOG
+This manual page is part of
+.Lk https://hacktivis.me/git/cross-unix-documentation "Cross-Unix Documentation"
+which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems.
+To be used as an addition to the POSIX standard.
+.Sh NAME
+.Nm regex
+.Nd Extensions to POSIX regular expressions
+.Sh DESCRIPTION
+.Ss musl
+Derived from laurikari's tre library.
+.Bl -bullet -compact
+.It
+"[a-z--@] is accepted as [a-z]|[--@]"
+.It
+\eb \eB \e< \e> \exHH \ex{HHHH}
+.It
+\e+ and \e? treated as repetitions in BRE
+.It
+\e| as alternation in BRE
+.It
+Accept unknown escape char as literal
+.It
+"empty branch is unspecified (), (|a), (a|) here they are not rejected but match on empty string"
+.El
+.Ss GNU glibc
+.Lk https://www.gnu.org/software/findutils/manual/html_node/find_html/posix_002dextended-regular-expression-syntax.html
+.\" Somehow glibc doesn't documents it's extensions, would otherwise be in https://sourceware.org/glibc/manual/latest/html_node/Regular-Expressions.html
+.Bl -bullet -compact
+.It
+\e+ and \e? treated as repetitions
+.It
+\e< \e> \eb \eB \e` \e'
+.El
+.Sh SEE ALSO
+.Lk "Austin Group Bug 1919: Add \eA and \ez to regular expressions" https://www.austingroupbugs.net/view.php?id=1919
+.Sh SOURCE
+.Sh AUTHORS
+.An Haelwenn (lanodan) Monnier Aq Mt contact+c-u-d@hacktivis.me