Applying modified version of patch #1018386, which fixes

some escaping bugs in SRE.
This commit is contained in:
Gustavo Niemeyer 2004-09-03 17:06:10 +00:00
parent ab9351bf36
commit a01a2ee933
3 changed files with 91 additions and 43 deletions

View file

@ -387,7 +387,8 @@ also accepted by the regular expression parser:
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.
escape. Otherwise, it is a group reference. As for string literals,
octal escapes are always at most three digits in length.
% Note the lack of a period in the section title; it causes problems