From 7af24bd23746f3c32cb77cf3960e8cd24ccc4944 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 3 Dec 2002 18:49:17 +0000 Subject: Fix example regular expressions that simulate scanf() constructs. --- Doc/ACKS | 1 + Doc/lib/libre.tex | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/ACKS b/Doc/ACKS index 7f19f23..e5d6297 100644 --- a/Doc/ACKS +++ b/Doc/ACKS @@ -130,6 +130,7 @@ Sjoerd Mullender Dale Nagata Ng Pheng Siong Koray Oner +Tomas Oppelstrup Denis S. Otkidach Zooko O'Whielacronx William Park diff --git a/Doc/lib/libre.tex b/Doc/lib/libre.tex index d48b1b8..7482b9c 100644 --- a/Doc/lib/libre.tex +++ b/Doc/lib/libre.tex @@ -860,11 +860,11 @@ offers some more-or-less equivalent mappings between \lineii{\code{\%5c}} {\regexp{.\{5\}}} \lineii{\code{\%d}} - {\regexp{[-+]\e d+}} + {\regexp{[-+]?\e d+}} \lineii{\code{\%e}, \code{\%E}, \code{\%f}, \code{\%g}} - {\regexp{[-+](\e d+(\e.\e d*)?|\e d*\e.\e d+)([eE]\e d+)?}} + {\regexp{[-+]?(\e d+(\e.\e d*)?|\e d*\e.\e d+)([eE]\e d+)?}} \lineii{\code{\%i}} - {\regexp{[-+](0[xX][\e dA-Fa-f]+|0[0-7]*|\e d+)}} + {\regexp{[-+]?(0[xX][\e dA-Fa-f]+|0[0-7]*|\e d+)}} \lineii{\code{\%o}} {\regexp{0[0-7]*}} \lineii{\code{\%s}} -- cgit v0.12