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.
2 parents 73b56c8 + 7cac2d8 commit fba5dc1Copy full SHA for fba5dc1
1 file changed
Doc/library/stdtypes.rst
@@ -1832,11 +1832,11 @@ expression support in the :mod:`re` module).
1832
1833
>>> import re
1834
>>> def titlecase(s):
1835
- return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
1836
- lambda mo: mo.group(0)[0].upper() +
1837
- mo.group(0)[1:].lower(),
1838
- s)
1839
-
+ ... return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
+ ... lambda mo: mo.group(0)[0].upper() +
+ ... mo.group(0)[1:].lower(),
+ ... s)
+ ...
1840
>>> titlecase("they're bill's friends.")
1841
"They're Bill's Friends."
1842
0 commit comments