From 81bdc93d2fec9aa95f10e04dd019a8c207faeb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 11 Apr 2002 12:24:12 +0000 Subject: [PATCH] Explain octal escapes. Fixes #542226. --- Doc/lib/libre.tex | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex index 61dd02899a6..5ab8d84a297 100644 --- a/Doc/lib/libre.tex +++ b/Doc/lib/libre.tex @@ -373,11 +373,9 @@ also accepted by the regular expression parser: \\ \end{verbatim} -Note that octal escapes are not included. While the parser can -attempt to determine whether a character is being specified by it's -ordinal value expressed in octal, doing so yields an expression which -is relatively difficult to maintain, as the same syntax is used to -refer to numbered groups. +Octal escapes are included in a limited form: If the first digit is a +0, or if there are three octal digits, it is considered an octal +escape. Otherwise, it is a group reference. \subsection{Matching vs. Searching \label{matching-searching}}