logo

cross-unix-documentation

documentation of similarities and (noteworthy) differencies between Unix systems git clone https://anongit.hacktivis.me/git/cross-unix-documentation.git/

regex.7x (1525B)


  1. .\" This file is part of Cross Unix Documentation
  2. .\" Copyright © 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
  3. .\" SPDX-License-Identifier: CC-BY-4.0
  4. .Dd 2025-04-24
  5. .Dt REGEX 7x
  6. .Os
  7. .Sh PROLOG
  8. This manual page is part of
  9. .Lk https://hacktivis.me/git/cross-unix-documentation "Cross-Unix Documentation"
  10. which is an attempt to provide documentation of similarities and (noteworthy) differencies between Unix-like systems.
  11. To be used as an addition to the POSIX standard.
  12. .Sh NAME
  13. .Nm regex
  14. .Nd Extensions to POSIX regular expressions
  15. .Sh DESCRIPTION
  16. .Ss musl
  17. Derived from laurikari's tre library.
  18. .Bl -bullet -compact
  19. .It
  20. "[a-z--@] is accepted as [a-z]|[--@]"
  21. .It
  22. \eb \eB \e< \e> \exHH \ex{HHHH}
  23. .It
  24. \e+ and \e? treated as repetitions in BRE
  25. .It
  26. \e| as alternation in BRE
  27. .It
  28. Accept unknown escape char as literal
  29. .It
  30. "empty branch is unspecified (), (|a), (a|) here they are not rejected but match on empty string"
  31. .El
  32. .Ss GNU glibc
  33. .Lk https://www.gnu.org/software/findutils/manual/html_node/find_html/posix_002dextended-regular-expression-syntax.html
  34. .\" Somehow glibc doesn't documents it's extensions, would otherwise be in https://sourceware.org/glibc/manual/latest/html_node/Regular-Expressions.html
  35. .Bl -bullet -compact
  36. .It
  37. \e+ and \e? treated as repetitions
  38. .It
  39. \e< \e> \eb \eB \e` \e'
  40. .El
  41. .Sh SEE ALSO
  42. .Lk "Austin Group Bug 1919: Add \eA and \ez to regular expressions" https://www.austingroupbugs.net/view.php?id=1919
  43. .Sh SOURCE
  44. .Sh AUTHORS
  45. .An Haelwenn (lanodan) Monnier Aq Mt contact+c-u-d@hacktivis.me