diff options
author | Georg Brandl <georg@python.org> | 2007-08-31 17:17:17 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-31 17:17:17 (GMT) |
commit | 81ac1ce56af43a37d963ec8aecb7069b7edb2077 (patch) | |
tree | 8e79225231f5e8b2fea8527d29b1274df128f05a /Doc/library/re.rst | |
parent | dcc56f8bf668965ef5f3cfe2fd6a07b7b84b08a8 (diff) | |
download | cpython-81ac1ce56af43a37d963ec8aecb7069b7edb2077.zip cpython-81ac1ce56af43a37d963ec8aecb7069b7edb2077.tar.gz cpython-81ac1ce56af43a37d963ec8aecb7069b7edb2077.tar.bz2 |
Address a few XXX comments, other fixes.
Diffstat (limited to 'Doc/library/re.rst')
-rw-r--r-- | Doc/library/re.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index d5abcdd..b0b8513 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -504,7 +504,12 @@ form. character class or preceded by an unescaped backslash, all characters from the leftmost such ``'#'`` through the end of the line are ignored. - .. % XXX should add an example here + This means that the two following regular expression objects are equal:: + + re.compile(r""" [a-z]+ # some letters + \.\. # two dots + [a-z]* # perhaps more letters""") + re.compile(r"[a-z]+\.\.[a-z]*") .. function:: search(pattern, string[, flags]) |