diff options
| author | Alejandro Colomar <alx@kernel.org> | 2023-02-05 23:03:36 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2023-02-05 23:03:36 +0100 |
| commit | a1e9245d98340e1acd372605326b63795d32b278 (patch) | |
| tree | 70a56ab492b1ea0ae307ccfbf5aad77f46878dc6 /man7/regex.7 | |
| parent | 3f029bc96bd3a22f336c45925e01eec2757b74dc (diff) | |
| download | man-pages-a1e9245d98340e1acd372605326b63795d32b278.tar.gz | |
Many pages: Use \[ha] instead of \(ha
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man7/regex.7')
| -rw-r--r-- | man7/regex.7 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/man7/regex.7 b/man7/regex.7 index f313f7e024..27a5cd497f 100644 --- a/man7/regex.7 +++ b/man7/regex.7 @@ -92,10 +92,10 @@ An atom is a regular expression enclosed in "\fI()\fP" (matching a match for the regular expression), an empty set of "\fI()\fP" (matching the null string)\*(dg, a \fIbracket expression\fR (see below), \[aq].\[aq] -(matching any single character), \[aq]\(ha\[aq] (matching the null string at the +(matching any single character), \[aq]\[ha]\[aq] (matching the null string at the beginning of a line), \[aq]$\[aq] (matching the null string at the end of a line), a \[aq]\e\[aq] followed by one of the characters -"\fI\(ha.[$()|*+?{\e\fP" +"\fI\[ha].[$()|*+?{\e\fP" (matching that character taken as an ordinary character), a \[aq]\e\[aq] followed by any other character\*(dg (matching that character taken as an ordinary character, @@ -107,7 +107,7 @@ It is illegal to end an RE with \[aq]\e\[aq]. .PP A \fIbracket expression\fR is a list of characters enclosed in "\fI[]\fP". It normally matches any single character from the list (but see below). -If the list begins with \[aq]\(ha\[aq], +If the list begins with \[aq]\[ha]\[aq], it matches any single character (but see below) \fInot\fR from the rest of the list. If two characters in the list are separated by \[aq]\-\[aq], this is shorthand @@ -120,7 +120,7 @@ Ranges are very collating-sequence-dependent, and portable programs should avoid relying on them. .PP To include a literal \[aq]]\[aq] in the list, make it the first character -(following a possible \[aq]\(ha\[aq]). +(following a possible \[aq]\[ha]\[aq]). To include a literal \[aq]\-\[aq], make it the first or last character, or the second endpoint of a range. To use a literal \[aq]\-\[aq] as the first endpoint of a range, @@ -227,7 +227,7 @@ transformed into a bracket expression containing both cases, for example, \[aq]x\[aq] becomes "\fI[xX]\fP". When it appears inside a bracket expression, all case counterparts of it are added to the bracket expression, so that, for example, "\fI[x]\fP" -becomes "\fI[xX]\fP" and "\fI[\(hax]\fP" becomes "\fI[\(haxX]\fP". +becomes "\fI[xX]\fP" and "\fI[\[ha]x]\fP" becomes "\fI[\[ha]xX]\fP". .PP No particular limit is imposed on the length of REs\*(dg. Programs intended to be portable should not employ REs longer @@ -243,13 +243,13 @@ The delimiters for bounds are "\fI\e{\fP" and "\fI\e}\fP", with \[aq]{\[aq] and \[aq]}\[aq] by themselves ordinary characters. The parentheses for nested subexpressions are "\fI\e(\fP" and "\fI\e)\fP", with \[aq](\[aq] and \[aq])\[aq] by themselves ordinary characters. -\[aq]\(ha\[aq] is an ordinary character except at the beginning of the +\[aq]\[ha]\[aq] is an ordinary character except at the beginning of the RE or\*(dg the beginning of a parenthesized subexpression, \[aq]$\[aq] is an ordinary character except at the end of the RE or\*(dg the end of a parenthesized subexpression, and \[aq]*\[aq] is an ordinary character if it appears at the beginning of the RE or the beginning of a parenthesized subexpression -(after a possible leading \[aq]\(ha\[aq]). +(after a possible leading \[aq]\[ha]\[aq]). .PP Finally, there is one new type of atom, a \fIback reference\fR: \[aq]\e\[aq] followed by a nonzero decimal digit \fId\fR |
