Name

expand

Synopsis

                        m.expand(s)

Returns a copy of s where escape sequences and back references are replaced in the same way as for method r .sub, covered in the previous section.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.