@c Permission is granted to copy, distribute and/or modify this document
@c Permission is granted to copy, distribute and/or modify this document
-@c under the terms of the GNU Free Documentation License, Version 1.2 or
+@c under the terms of the GNU Free Documentation License, Version 1.3 or
@c any later version published by the Free Software Foundation; with no
@c Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
@c Texts. A copy of the license is included in the ``GNU Free
@c Documentation License'' file as part of this distribution.
@c any later version published by the Free Software Foundation; with no
@c Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
@c Texts. A copy of the license is included in the ``GNU Free
@c Documentation License'' file as part of this distribution.
+@c this regular expression description is for: generic
+
@menu
* awk regular expression syntax::
* egrep regular expression syntax::
@menu
* awk regular expression syntax::
* egrep regular expression syntax::
@@ -192,7+194,7 @@ The character @samp{$} only represents the end of a string when it appears:
@item At the end of a regular expression
@item At the end of a regular expression
-@item Before an close-group, signified by
+@item Before a close-group, signified by
@samp{\)}
@item Before the alternation operator @samp{\|}
@samp{\)}
@item Before the alternation operator @samp{\|}
@@ -283,7+285,7 @@ The character @samp{$} only represents the end of a string when it appears:
@item At the end of a regular expression
@item At the end of a regular expression
-@item Before an close-group, signified by
+@item Before a close-group, signified by
@samp{\)}
@item Before the alternation operator @samp{\|}
@samp{\)}
@item Before the alternation operator @samp{\|}
@@ -441,7+443,7 @@ The character @samp{$} only represents the end of a string when it appears:
@item At the end of a regular expression
@item At the end of a regular expression
-@item Before an close-group, signified by
+@item Before a close-group, signified by
@samp{\)}
@item Before a newline
@samp{\)}
@item Before a newline
@@ -499,7+501,7 @@ The alternation operator is @samp{|}.
The characters @samp{^} and @samp{$} always represent the beginning and end of a string respectively, except within square brackets. Within brackets, @samp{^} can be used to invert the membership of the character class being specified.
The characters @samp{^} and @samp{$} always represent the beginning and end of a string respectively, except within square brackets. Within brackets, @samp{^} can be used to invert the membership of the character class being specified.
-@samp{*}, @samp{+} and @samp{?} are special at any point in a regular expression except the following places, where they are illegal:
+@samp{*}, @samp{+} and @samp{?} are special at any point in a regular expression except the following places, where they are not allowed:
@enumerate
@item At the beginning of a regular expression
@enumerate
@item At the beginning of a regular expression
@@ -626,7+628,7 @@ The alternation operator is @samp{|}.
The characters @samp{^} and @samp{$} always represent the beginning and end of a string respectively, except within square brackets. Within brackets, @samp{^} can be used to invert the membership of the character class being specified.
The characters @samp{^} and @samp{$} always represent the beginning and end of a string respectively, except within square brackets. Within brackets, @samp{^} can be used to invert the membership of the character class being specified.
-@samp{*}, @samp{+} and @samp{?} are special at any point in a regular expression except the following places, where they are illegal:
+@samp{*}, @samp{+} and @samp{?} are special at any point in a regular expression except the following places, where they are not allowed:
@enumerate
@item At the beginning of a regular expression
@enumerate
@item At the beginning of a regular expression
@@ -696,7+698,7 @@ The character @samp{$} only represents the end of a string when it appears:
@item At the end of a regular expression
@item At the end of a regular expression
-@item Before an close-group, signified by
+@item Before a close-group, signified by
@samp{\)}
@end enumerate
@samp{\)}
@end enumerate
@@ -710,4+712,4 @@ The longest possible match is returned; this applies to the regular expression a