From: Georg Brandl Date: Sat, 26 Jan 2008 11:00:18 +0000 (+0000) Subject: Add missing things in re docstring. X-Git-Tag: v2.6a1~395 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=422319937e49a2211081715eddb0a2324ccbf230;p=python Add missing things in re docstring. --- diff --git a/Lib/re.py b/Lib/re.py index 968eaab5f5..d7151543f0 100644 --- a/Lib/re.py +++ b/Lib/re.py @@ -38,7 +38,7 @@ The special characters are: *?,+?,?? Non-greedy versions of the previous three special characters. {m,n} Matches from m to n repetitions of the preceding RE. {m,n}? Non-greedy version of the above. - "\\" Either escapes special characters or signals a special sequence. + "\\" Either escapes special characters or signals a special sequence. [] Indicates a set of characters. A "^" as the first character indicates a complementing set. "|" A|B, creates an RE that will match either A or B. @@ -51,6 +51,10 @@ The special characters are: (?#...) A comment; ignored. (?=...) Matches if ... matches next, but doesn't consume the string. (?!...) Matches if ... doesn't match next. + (?<=...) Matches if preceded by ... (must be fixed length). + (?