>From 56a9ab86e30ccf9ada5bd47164353ac362a6d2e0 Mon Sep 17 00:00:00 2001
From: Greg Reagle <[email protected]>
Date: Thu, 12 Aug 2021 12:31:34 -0400
Subject: [PATCH] include table of regexp syntax
---
grep.1 | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/grep.1 b/grep.1
index cb9ae47..384aac3 100644
--- a/grep.1
+++ b/grep.1
@@ -73,6 +73,26 @@ Consider only input lines that use all characters in the
line excluding the
terminating <newline> to match an entire fixed string or regular expression to
be matching lines.
.El
+.Sh SYNTAX OF POSIX REGULAR EXPRESSIONS
+This is a quick reference, not comprehensive and not definitive.
+.Bl -column basic extended -offset indent
+.It Basic Ta Extended Ta meaning
+.It . Ta . Ta any character
+.It ^ Ta ^ Ta start of line
+.It $ Ta $ Ta end of line
+.It * Ta * Ta 0 or more
+.It [ Ta [ Ta start bracket expression
+.It [^ Ta [^ Ta start negated bracket expression
+.It ] Ta ] Ta end bracket expression
+.It - Ta - Ta range inside bracket expression
+.It \e{ Ta { Ta start bound
+.It \e} Ta } Ta end bound
+.It \e( Ta ( Ta start sub-expression
+.It \e) Ta ) Ta end sub-expression
+.It NA Ta | Ta alternation, choice
+.It NA Ta + Ta 1 or more
+.It NA Ta ? Ta 0 or 1
+.El
.Sh EXIT STATUS
.Bl -tag -width Ds
.It 0
--
2.20.1
From 56a9ab86e30ccf9ada5bd47164353ac362a6d2e0 Mon Sep 17 00:00:00 2001
From: Greg Reagle <[email protected]>
Date: Thu, 12 Aug 2021 12:31:34 -0400
Subject: [PATCH] include table of regexp syntax
---
grep.1 | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/grep.1 b/grep.1
index cb9ae47..384aac3 100644
--- a/grep.1
+++ b/grep.1
@@ -73,6 +73,26 @@ Consider only input lines that use all characters in the line excluding the
terminating <newline> to match an entire fixed string or regular expression to
be matching lines.
.El
+.Sh SYNTAX OF POSIX REGULAR EXPRESSIONS
+This is a quick reference, not comprehensive and not definitive.
+.Bl -column basic extended -offset indent
+.It Basic Ta Extended Ta meaning
+.It . Ta . Ta any character
+.It ^ Ta ^ Ta start of line
+.It $ Ta $ Ta end of line
+.It * Ta * Ta 0 or more
+.It [ Ta [ Ta start bracket expression
+.It [^ Ta [^ Ta start negated bracket expression
+.It ] Ta ] Ta end bracket expression
+.It - Ta - Ta range inside bracket expression
+.It \e{ Ta { Ta start bound
+.It \e} Ta } Ta end bound
+.It \e( Ta ( Ta start sub-expression
+.It \e) Ta ) Ta end sub-expression
+.It NA Ta | Ta alternation, choice
+.It NA Ta + Ta 1 or more
+.It NA Ta ? Ta 0 or 1
+.El
.Sh EXIT STATUS
.Bl -tag -width Ds
.It 0
--
2.20.1