CVSROOT: /webcvs/grep Module name: grep Changes by: Jim Meyering <meyering> 18/12/30 01:24:22
Index: html_node/Character-Classes-and-Bracket-Expressions.html =================================================================== RCS file: /webcvs/grep/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html,v retrieving revision 1.28 retrieving revision 1.29 diff -u -b -r1.28 -r1.29 --- html_node/Character-Classes-and-Bracket-Expressions.html 10 Feb 2017 04:43:38 -0000 1.28 +++ html_node/Character-Classes-and-Bracket-Expressions.html 30 Dec 2018 06:24:22 -0000 1.29 @@ -2,7 +2,7 @@ <html> <!-- This manual is for grep, a pattern matching engine. -Copyright (C) 1999-2002, 2005, 2008-2017 Free Software Foundation, +Copyright (C) 1999-2002, 2005, 2008-2018 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document @@ -11,16 +11,16 @@ Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". --> -<!-- Created by GNU Texinfo 6.3, http://www.gnu.org/software/texinfo/ --> +<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ --> <head> -<title>GNU Grep 3.0: Character Classes and Bracket Expressions</title> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> +<title>Character Classes and Bracket Expressions (GNU Grep 3.3)</title> -<meta name="description" content="GNU Grep 3.0: Character Classes and Bracket Expressions"> -<meta name="keywords" content="GNU Grep 3.0: Character Classes and Bracket Expressions"> +<meta name="description" content="Character Classes and Bracket Expressions (GNU Grep 3.3)"> +<meta name="keywords" content="Character Classes and Bracket Expressions (GNU Grep 3.3)"> <meta name="resource-type" content="document"> <meta name="distribution" content="global"> <meta name="Generator" content="makeinfo"> -<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link href="index.html#Top" rel="start" title="Top"> <link href="Index.html#Index" rel="index" title="Index"> <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents"> @@ -73,11 +73,15 @@ <a name="index-character-class"></a> <p>A <em>bracket expression</em> is a list of characters enclosed by ‘<samp>[</samp>’ and ‘<samp>]</samp>’. -It matches any single character in that list; -if the first character of the list is the caret ‘<samp>^</samp>’, -then it matches any character <strong>not</strong> in the list. +It matches any single character in that list. +If the first character of the list is the caret ‘<samp>^</samp>’, +then it matches any character <strong>not</strong> in the list, +and it is unspecified whether it matches an encoding error. For example, the regular expression -‘<samp>[0123456789]</samp>’ matches any single digit. +‘<samp>[0123456789]</samp>’ matches any single digit, +whereas ‘<samp>[^()]</samp>’ matches any single character that is not +an opening or closing parenthesis, and might or might not match an +encoding error. </p> <a name="index-range-expression"></a> <p>Within a bracket expression, a <em>range expression</em> consists of two
