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 4abda54 commit db4e939Copy full SHA for db4e939
1 file changed
βDoc/library/re.rstβ
@@ -1230,9 +1230,9 @@ in each word of a sentence except for the first and last characters::
1230
... random.shuffle(inner_word)
1231
... return m.group(1) + "".join(inner_word) + m.group(3)
1232
>>> text = "Professor Abdolmalek, please report your absences promptly."
1233
- >>> re.sub("(\w)(\w+)(\w)", repl, text)
+ >>> re.sub(r"(\w)(\w+)(\w)", repl, text)
1234
'Poefsrosr Aealmlobdk, pslaee reorpt your abnseces plmrptoy.'
1235
1236
'Pofsroser Aodlambelk, plasee reoprt yuor asnebces potlmrpy.'
1237
1238
0 commit comments