From 422319937e49a2211081715eddb0a2324ccbf230 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sat, 26 Jan 2008 11:00:18 +0000 Subject: [PATCH] Add missing things in re docstring. --- Lib/re.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Lib/re.py b/Lib/re.py index 968eaab5f54..d7151543f00 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). + (?