From e43c786c285a0757b7db71cbc79a66e791829345 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 11 Jun 2019 22:17:57 +0300 Subject: Doc update on unmatched parentheses in regexps. --- doc/gawk.texi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc/gawk.texi') diff --git a/doc/gawk.texi b/doc/gawk.texi index 1b248fc6..aef39200 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -5693,6 +5693,11 @@ containing the alternation operator, @samp{|}. For example, (These are Texinfo formatting control sequences. The @samp{+} is explained further on in this list.) +The left or opening parenthesis is always a metacharacter; to match +one literally, precede it with a backslash. However, the right or +closing parenthesis is only special when paired with a left parenthesis; +an unpaired right parenthesis is (silently) treated as a regular character. + @cindex @code{*} (asterisk), @code{*} operator, as regexp operator @cindex asterisk (@code{*}), @code{*} operator, as regexp operator @item @code{*} -- cgit v1.2.3