WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Structural Regular Expressions && sreutils  (Read 918 times)

Offline mocore

  • Hero Member
  • *****
  • Posts: 645
  • ~.~
Structural Regular Expressions && sreutils
« on: March 15, 2024, 07:53:47 AM »
https://doc.cat-v.org/bell_labs/structural_regexps/se.pdf

Quote
“The current UNIX® text processing tools are weakened by the built-in concept of a line. There is a simple notation that can describe the `shape' of files when the typical array-of-lines picture is inadequate. That notation is regular expressions. Using regular expressions to describe the structure in addition to the contents of files has interesting applications, and yields elegant methods for dealing with some problems the current tools handle clumsily. When operations using these expressions are composed, the result is reminiscent of shell pipelines.”

 https://doc.cat-v.org/bell_labs/structural_regexps/


via  https://github.com/segf00lt/sreutils  - sed , grep & awk redesigned with Rob Pike's structural regular expressions in mind.
Quote
siv - grep like program (Multi-layer regular expression matching).

pike - sed replacement with sam syntax

auk - awk implementation with structural regex support