Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e9a065 commit 5c90436Copy full SHA for 5c90436
1 file changed
Doc/library/stdtypes.rst
@@ -1390,11 +1390,11 @@ functions based on regular expressions.
1390
1391
>>> import re
1392
>>> def titlecase(s):
1393
- return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
1394
- lambda mo: mo.group(0)[0].upper() +
1395
- mo.group(0)[1:].lower(),
1396
- s)
1397
-
+ ... return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
+ ... lambda mo: mo.group(0)[0].upper() +
+ ... mo.group(0)[1:].lower(),
+ ... s)
+ ...
1398
>>> titlecase("they're bill's friends.")
1399
"They're Bill's Friends."
1400
0 commit comments