python/docs/stdlib/re

re

dz / python / docs / stdlib / re

Node Tree

Nodes

sub
content re.sub(pattern, repl, string, count=0, flags=0): Return the string obtained by replacing the leftmost non-overlapping occurrences of pattern in string by the replacement repl.
parents leetcode/problems/1071_GCD_of_strings, python/docs/stdlib/re
hyperlink https://docs.python.org/3/library/re.html#re.sub