diff --git a/Doc/howto/regex.rst b/Doc/howto/regex.rst index 9e7b5c887507d7..2745174cab1a57 100644 --- a/Doc/howto/regex.rst +++ b/Doc/howto/regex.rst @@ -488,7 +488,7 @@ In actual programs, the most common style is to store the Python 3.8 added assignment expressions that shorten the above pattern by a line:: - p = re.compile( ... ) + p = re.compile(...) if (m := p.match( 'string goes here' )): print('Match found: ', m.group()) else: