MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / sub

Function sub

Lib/re.py:144–151  ·  view source on GitHub ↗

Return the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in string by the replacement repl. repl can be either a string or a callable; if a string, backslash escapes in it are processed. If it is a callable, it's passed the match object and mu

(pattern, repl, string, count=0, flags=0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

_compileFunction · 0.70
subMethod · 0.45

Tested by

no test coverage detected