Lines Matching refs:repl
178 def sub(pattern, repl, string, count=0, flags=0):
181 replacement repl. repl can be either a string or a callable;
185 return _compile(pattern, flags).sub(repl, string, count)
187 def subn(pattern, repl, string, count=0, flags=0):
191 string by the replacement repl. number is the number of
192 substitutions that were made. repl can be either a string or a
196 return _compile(pattern, flags).subn(repl, string, count)
306 def _compile_repl(repl, pattern):
308 return _parser.parse_template(repl, pattern)