This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients saga, serhiy.storchaka
Date 2018-12-20.08:32:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1545294732.15.0.788709270274.issue35543@psf.upfronthosting.co.za>
In-reply-to
Content
The third argument of re.sub() is the maximal number of replacements. re.I == 2.

sub(pattern, repl, string, count=0, flags=0)
    Return the string obtained by replacing the leftmost
    non-overlapping occurrences of the pattern in string by the
    replacement repl.  repl can be either a string or a callable;
    if a string, backslash escapes in it are processed.  If it is
    a callable, it's passed the Match object and must return
    a replacement string to be used.
History
Date User Action Args
2018-12-20 08:32:12serhiy.storchakasetrecipients: + serhiy.storchaka, saga
2018-12-20 08:32:12serhiy.storchakasetmessageid: <1545294732.15.0.788709270274.issue35543@psf.upfronthosting.co.za>
2018-12-20 08:32:12serhiy.storchakalinkissue35543 messages
2018-12-20 08:32:12serhiy.storchakacreate