diff options
author | Fred Drake <fdrake@acm.org> | 2002-12-03 18:49:17 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-12-03 18:49:17 (GMT) |
commit | 7af24bd23746f3c32cb77cf3960e8cd24ccc4944 (patch) | |
tree | 0f0a452ceb98712e42b7f585b7b8eeca02b35f73 /Doc/lib/libre.tex | |
parent | 71aa6d6db902455d1044e3348c80763f0e0ce639 (diff) | |
download | cpython-7af24bd23746f3c32cb77cf3960e8cd24ccc4944.zip cpython-7af24bd23746f3c32cb77cf3960e8cd24ccc4944.tar.gz cpython-7af24bd23746f3c32cb77cf3960e8cd24ccc4944.tar.bz2 |
Fix example regular expressions that simulate scanf() constructs.
Diffstat (limited to 'Doc/lib/libre.tex')
-rw-r--r-- | Doc/lib/libre.tex | 6 |
1 files changed, 3 insertions, 3 deletions
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}} |