PyDocs

Nav

Text Processing Services

Match.expand

re

method of Match
  • Match.expand(template)
Return the string obtained by doing backslash substitution on the string template, as done by the sub() method.
Changed in 3.5
  • 3.5: Unmatched groups are replaced with an empty string.
0 Examples
No examples for re/Match.expand.
See Also
No see-alsos for re/Match.expand
0 Notes
No notes for Match.expand