match.expand(template)
Return the string obtained by doing backslash substitution on the template string template, as done by the sub()
method. Escapes such as \n
are converted to the appropriate characters, and numeric backreferences (\1
, \2
) and named backreferences (\g<1>
, \g<name>
) are replaced by the contents of the corresponding group.
Changed in version 3.5: Unmatched groups are replaced with an empty string.
Please login to continue.