diff options
author | Georg Brandl <georg@python.org> | 2009-08-13 07:48:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-08-13 07:48:05 (GMT) |
commit | 04fd324fe3b99fd731ac46352056fa902ccc77f4 (patch) | |
tree | 2bbe92a1bb2a05c55447e9d94ed92b202616de1a | |
parent | f466642c6622495c08382d9488b301d9de26990b (diff) | |
download | cpython-04fd324fe3b99fd731ac46352056fa902ccc77f4.zip cpython-04fd324fe3b99fd731ac46352056fa902ccc77f4.tar.gz cpython-04fd324fe3b99fd731ac46352056fa902ccc77f4.tar.bz2 |
#6679: Remove mention that sub supports no flags.
-rw-r--r-- | Doc/library/re.rst | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst index df63f9b..c099fcd 100644 --- a/Doc/library/re.rst +++ b/Doc/library/re.rst @@ -635,9 +635,7 @@ form. >>> re.sub(r'\sAND\s', ' & ', 'Baked Beans And Spam', flags=re.IGNORECASE) 'Baked Beans & Spam' - The pattern may be a string or an RE object; if you need to specify regular - expression flags, you must use a RE object, or use embedded modifiers in a - pattern; for example, ``sub("(?i)b+", "x", "bbbb BBBB")`` returns ``'x x'``. + The pattern may be a string or an RE object. The optional argument *count* is the maximum number of pattern occurrences to be replaced; *count* must be a non-negative integer. If omitted or zero, all |