PyDocs

Nav

Text Processing Services

Pattern.sub

re

method of Pattern
  • Pattern.sub(repl, string, count=0)
Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
0 Examples
No examples for re/Pattern.sub.
See Also
No see-alsos for re/Pattern.sub
0 Notes
No notes for Pattern.sub