[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Changes to grep/manual/html_node/Regular-Expressions.html,v
From: |
Jim Meyering |
Subject: |
Changes to grep/manual/html_node/Regular-Expressions.html,v |
Date: |
Wed, 22 Mar 2023 22:55:26 -0400 (EDT) |
CVSROOT: /webcvs/grep
Module name: grep
Changes by: Jim Meyering <meyering> 23/03/22 22:55:22
Index: html_node/Regular-Expressions.html
===================================================================
RCS file: /webcvs/grep/grep/manual/html_node/Regular-Expressions.html,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- html_node/Regular-Expressions.html 3 Sep 2022 19:33:14 -0000 1.33
+++ html_node/Regular-Expressions.html 23 Mar 2023 02:55:21 -0000 1.34
@@ -1,11 +1,11 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
+<!DOCTYPE html>
<html>
-<!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ -->
+<!-- Created by GNU Texinfo 7.0dev, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This manual is for grep, a pattern matching engine.
-Copyright (C) 1999-2002, 2005, 2008-2022 Free Software Foundation,
+Copyright © 1999-2002, 2005, 2008-2023 Free Software Foundation,
Inc.
Permission is granted to copy, distribute and/or modify this document
@@ -14,10 +14,10 @@
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". -->
-<title>Regular Expressions (GNU Grep 3.8)</title>
+<title>Regular Expressions (GNU Grep 3.10)</title>
-<meta name="description" content="Regular Expressions (GNU Grep 3.8)">
-<meta name="keywords" content="Regular Expressions (GNU Grep 3.8)">
+<meta name="description" content="Regular Expressions (GNU Grep 3.10)">
+<meta name="keywords" content="Regular Expressions (GNU Grep 3.10)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
@@ -31,21 +31,8 @@
<link href="Invoking.html" rel="prev" title="Invoking">
<style type="text/css">
<!--
-a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em}
-a.summary-letter {text-decoration: none}
-blockquote.indentedblock {margin-right: 0em}
-div.display {margin-left: 3.2em}
-div.example {margin-left: 3.2em}
-kbd {font-style: oblique}
-pre.display {font-family: inherit}
-pre.format {font-family: inherit}
-pre.menu-comment {font-family: serif}
-pre.menu-preformatted {font-family: serif}
-span.nolinebreak {white-space: nowrap}
-span.roman {font-family: initial; font-weight: normal}
-span.sansserif {font-family: sans-serif; font-weight: normal}
-span:hover a.copiable-anchor {visibility: visible}
-ul.no-bullet {list-style: none}
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
-->
</style>
<link rel="stylesheet" type="text/css"
href="https://www.gnu.org/software/gnulib/manual.css">
@@ -54,33 +41,34 @@
</head>
<body lang="en">
-<div class="chapter" id="Regular-Expressions">
-<div class="header">
+<div class="chapter-level-extent" id="Regular-Expressions">
+<div class="nav-panel">
<p>
-Next: <a href="Usage.html" accesskey="n" rel="next">Usage</a>, Previous: <a
href="Invoking.html" accesskey="p" rel="prev">Invoking <code>grep</code></a>,
Up: <a href="index.html" accesskey="u" rel="up">grep</a> [<a
href="index.html#SEC_Contents" title="Table of contents"
rel="contents">Contents</a>][<a href="Index.html" title="Index"
rel="index">Index</a>]</p>
+Next: <a href="Usage.html" accesskey="n" rel="next">Usage</a>, Previous: <a
href="Invoking.html" accesskey="p" rel="prev">Invoking <code
class="command">grep</code></a>, Up: <a href="index.html" accesskey="u"
rel="up">grep</a> [<a href="index.html#SEC_Contents" title="Table of
contents" rel="contents">Contents</a>][<a href="Index.html" title="Index"
rel="index">Index</a>]</p>
</div>
<hr>
-<span id="Regular-Expressions-1"></span><h2 class="chapter">3 Regular
Expressions</h2>
-<span id="index-regular-expressions"></span>
+<h2 class="chapter" id="Regular-Expressions-1"><span>3 Regular Expressions<a
class="copiable-link" href="#Regular-Expressions-1"> ¶</a></span></h2>
+<a class="index-entry-id" id="index-regular-expressions"></a>
-<p>A <em>regular expression</em> is a pattern that describes a set of strings.
+<p>A <em class="dfn">regular expression</em> is a pattern that describes a set
of strings.
Regular expressions are constructed analogously to arithmetic expressions,
by using various operators to combine smaller expressions.
-<code>grep</code> understands
+<code class="command">grep</code> understands
three different versions of regular expression syntax:
basic (BRE), extended (ERE), and Perl-compatible (PCRE).
-In GNU <code>grep</code>,
-there is no difference in available functionality between basic and
-extended syntax.
-In other implementations, basic regular expressions are less powerful.
+In GNU <code class="command">grep</code>,
+basic and extended regular expressions are merely different notations
+for the same pattern-matching functionality.
+In other implementations, basic regular expressions are ordinarily
+less powerful than extended, though occasionally it is the other way around.
The following description applies to extended regular expressions;
differences for basic regular expressions are summarized afterwards.
-Perl-compatible regular expressions give additional functionality, and
-are documented in the <i>pcre2syntax</i>(3) and <i>pcre2pattern</i>(3) manual
+Perl-compatible regular expressions have different functionality, and
+are documented in the <i class="i">pcre2syntax</i>(3) and <i
class="i">pcre2pattern</i>(3) manual
pages, but work only if PCRE is available in the system.
</p>
-<ul class="section-toc">
+<ul class="mini-toc">
<li><a href="Fundamental-Structure.html" accesskey="1">Fundamental
Structure</a></li>
<li><a href="Character-Classes-and-Bracket-Expressions.html"
accesskey="2">Character Classes and Bracket Expressions</a></li>
<li><a href="Special-Backslash-Expressions.html" accesskey="3">Special
Backslash Expressions</a></li>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Changes to grep/manual/html_node/Regular-Expressions.html,v,
Jim Meyering <=