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

Function subn

Lib/re.py:153–162  ·  view source on GitHub ↗

Return a 2-tuple containing (new_string, number). new_string is the string obtained by replacing the leftmost non-overlapping occurrences of the pattern in the source string by the replacement repl. number is the number of substitutions that were made. repl can be either a string or

(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 1

_compileFunction · 0.70

Tested by

no test coverage detected