diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-19 01:45:53 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-19 01:46:19 -0700 |
commit | 373b4434ebc15f447ca6f96007ed6181c9a2a496 (patch) | |
tree | a85901d88bd06d0d03d05c4771dfdf8c491268e3 | |
parent | c83ffc197ec483c6f44f907346f34127ec044ef0 (diff) | |
download | grep-373b4434ebc15f447ca6f96007ed6181c9a2a496.tar.gz |
doc: distinguish Perl from PCRE
* doc/grep.texi: Mention that PCRE might not match Perl exactly.
-rw-r--r-- | doc/grep.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/grep.texi b/doc/grep.texi index eaad6e17..b17c4dac 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -1157,6 +1157,12 @@ we expect to make that the default, so it will be overridable. @c ٠١٢٣٤٥٦٧٨٩ @item +Although PCRE tracks the syntax and semantics of Perl's regular +expressions, the match is not always exact, partly because Perl +evolves and a Perl installation may predate or postdate the PCRE2 +installation on the same host. + +@item By default, @command{grep} applies each regexp to a line at a time, so the @samp{(?s)} directive (making @samp{.} match line breaks) is generally ineffective. |